removeUnknownPos: Remove the tokens that have unknown POS.

Description Usage Arguments Value

View source: R/helpers.R

Description

Remove the tokens that have unknown POS.

Usage

1
removeUnknownPos(gram, validPos, n)

Arguments

gram

An N-gram data.frame

validPos

Character vector of valid POS tags

n

An integer specifying the N in N-gram

Value

A data.frame of cleaned N-grams.


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