coarsen_POS_tags: Coarsen POS tags

Description Usage Arguments Value Examples

Description

Coarsens PTB or Petrov/Gimpel coarse tags into one of eight categories: 'A' = adjective, 'D' = determiner, 'P' = preposition, 'N' = common/proper noun, 'M' = verb modifiers, 'V' = verbs, 'C' = coordinating conjunction, 'O' = all else NOTE: 'M', 'C', and 'V' tags are currently only compatible with the PTB tagset.

Usage

1
coarsen_POS_tags(tag_vector)

Arguments

tag_vector

A vector of POS tags.

Value

A vector of coarse tags.

Examples

1
2
pos_tags <- c("VB", "JJ", "NN", "NN")
coarsen_POS_tags(pos_tags)

phrasemachine documentation built on May 2, 2019, 8:23 a.m.