Skip to contents

get entities from POS DF

Usage

get_entities(pos_df, as_list = TRUE, rgx_entities = "^(PER(SON)?|ORG|GPE)_")

Arguments

pos_df

a pos data frame as generated by spacyr::spacy_parse()

Examples

pos_txt <- sample_text |> spacyr::spacy_parse()
#> Error: object 'sample_text' not found
pos_txt  |> get_entities(as_list = FALSE)
#> Error: object 'pos_txt' not found
pos_txt  |> get_entities()
#> Error: object 'pos_txt' not found