locate_tags: Locate Part of Speech Tags

Description Usage Arguments Value Examples

Description

Locate part of speech tags within a tag_pos object.

Usage

1
locate_tags(x, tags, negate = FALSE, regex = FALSE, logical = TRUE, ...)

Arguments

x

A tag_pos object or a named list of vectors.

tags

The tags (or regex of regex = TRUE to select.

negate

logical. If TRUE and regex = FALSE the tags not matching tags are returned.

regex

logical. If TRUE then tag will be grepped for as a regex.

logical

logical. If TRUE the out put while be logical TRUE/FALSE. If FALSE output will be integer element indices.

...

Other arguments passed to grepl.

Value

Returns a list of locations (integer or logical) of part of speech tags as vectors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17

trinker/tagger documentation built on May 31, 2019, 10:42 p.m.