Description Usage Arguments Value Examples
A traditional style of displaying words and tags in the same vector.
1 | as_word_tag(x, sep = "/", word.first = TRUE, ...)
|
x |
A |
sep |
A separator to put between the word and the tag. |
word.first |
logical. If |
... |
ignored. |
Returns a combined character vector of words and tags.
1 2 3 4 5 6 7 8 9 10 | (x <- tag_pos("I need $54 to go to the movies."))
c(x) ## The true structure of a `tag_pos` object
as_word_tag(c(x))
as_word_tag(c(x), word.first=FALSE)
as_word_tag(c(x), sep="|")
gsub("([^ ]+)", "(\\1)", as_word_tag(c(x), sep="="))
(out1 <- tag_pos(sam_i_am))
c(out1)
as_word_tag(c(out1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.