Substitute proper names/entities spaces with underscore in the text.
Source:R/entity_link.R
subs_ppn.Rd
given a text and a vector of entities, it substitutes the spaces with underscores, so the entities are identified.
Examples
texto_teste <- "José da Silva e Fulano de Tal foram, bla Maria Silva. E depois disso, bla Joaquim José da Silva Xavier no STF"
ppn <- texto_teste |> extract_entity(connectors("pt"), sw = gen_stopwords("pt"))
#> Error in gen_stopwords("pt"): could not find function "gen_stopwords"
texto_teste |> subs_ppn(ppn)
#> Error: object 'ppn' not found
texto_teste |> subs_ppn(ppn, method = "loop")
#> Error: object 'ppn' not found
text <- texto_teste |> subs_ppn(ppn)
#> Error: object 'ppn' not found
texd
#> Error: object 'texd' not found