tidy_pos: Tidy Parts of Speech Object

Description Usage Arguments Value Examples

Description

Pull out text element id, tokens, and parts of speech as separate columns in a tidy data.frame.

Usage

1
tidy_pos(x, id.name = "id", token.name = "token", pos.name = "pos", ...)

Arguments

x

A tag_pos object.

id.name

The name for the column assigned to each element in the text vector.

token.name

The name for the column of tokens.

pos.name

The name for the column of parts of speech.

...

ignored.

Value

Returns a data.table with element, token, and pos columns.

Examples

1
2
(out1 <- tag_pos(sam_i_am))
tidy_pos(out1)

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