ApplyConllFilter: Applies a user-defined filter to a set of sentences

Description Usage Arguments Value

View source: R/filtering.R

Description

Applies a user-defined filter to a set of sentences

Usage

1
ApplyConllFilter(sents, filter_funct, return_type = "raw")

Arguments

sents

a vector of sentences

filter_funct

a user-defined filter function

return_type

'raw', 'matches', 'both', 'both_pretty': raw returns just a filtered vector, matches returns the actual words that matched, both returns matches and the conll input as a separate variable and both_pretty transforms the conll input to an ordinary human readable sentence

Value

depending on the return_type parameter, either a vector of sentences or a tibble of matches


utacorpora/depsearcheR documentation built on Sept. 21, 2019, 1:07 a.m.