Description Usage Arguments Details Value References Examples
Convert the Penn Treebank tags to basic part of speech tags.
1 |
x |
A |
... |
ignored. |
Basic tags include: (a) nouns, (b) adjectives, (c) prepositions,
(d) articles, (e) verbs, (f) pronouns, (g) adverbs, (h) interjections, &
(i) conjunctions. The X
and .
tags are retained for punctuation
and unclassified parts of speech. This tagset can be useful for more coarse
purposes, including formality (Heylighen & Dewaele, 2002) scoring.
Returns a combined character vector of words and universal tags.
Heylighen, F., & Dewaele, J.M. (2002). Variation in the contextuality of language: An empirical measure. Context in Context, Special issue of Foundations of Science, 7 (3), 293-340.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | (x <- tag_pos("They refuse to permit us to obtain the refuse permit"))
as_basic(x)
(out1 <- tag_pos(sam_i_am))
as_basic(out1)
presidential_debates_2012_pos
as_basic(presidential_debates_2012_pos)
library(dplyr)
presidential_debates_2012_pos %>%
as_basic() %>%
count_tags(grouping.var=presidential_debates_2012[["person"]]) %>%
plot()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.