Skip to contents

collapse sequence of repeated POS into a single one

Usage

group_seq_pos(DF, POS = "PROPN|NOUN")

Examples

pos <- "Mary Jane was the first to drink" |> spacy_parse()
#> Error in spacy_parse("Mary Jane was the first to drink"): could not find function "spacy_parse"
pos |> group_seq_pos()
#> Error in dplyr::mutate(DF, name = grepl(POS, pos)):  In argument: `name = grepl(POS, pos)`.
#> Caused by error:
#> ! `name` must be size 23 or 1, not 4.