tagText: Tag the text with POS

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Tag the text with POS in the "token/TAG" format. The text is also cleaned.

Usage

1
tagText(input, wordsToRemove = "")

Arguments

input

Character vector to clean.

wordsToRemove

Character vector of words to remove. The default is an empty string.

Value

Tagged text

Examples

1
2
3
4
input <- c("this is an example", "what will it do!")
remove <- c("example", "it", "the")
tagText(input, remove)
# returns "this/DT is/VBZ an/DT what/WP will/MD do/VB"

justinnafe/NextWord documentation built on May 20, 2019, 5:16 a.m.