universalTagset: Convert Penn TreeBank POS to Universal Tagset

Description Usage Arguments Examples

Description

Maps a character string of English Penn TreeBank part of speech tags into the universal tagset codes. This provides a reduced set of tags (12), and a better cross-linguist model of speech.

Usage

1
universalTagset(pennPOS)

Arguments

pennPOS

a character vector of penn tags to match

Examples

1
2
tok <- getToken(annoEtranger)
cbind(tok$POS,universalTagset(tok$POS))

statsmaths/coreNLP documentation built on May 30, 2019, 10:41 a.m.