read_tokens | R Documentation |
tokens
object from a text fileThis function reads an object of the class tokens
from a text file, typically
stored with write_tokens()
. The text file is assumed to contain one token on
each line and not to have a header.
read_tokens(file, file_encoding = "UTF-8", ...)
file |
Name of the input file. |
file_encoding |
Encoding to read the input file. |
... |
Additional arguments (not implemented). |
An object of class tokens
.
write_tokens()
Other reading functions:
read_assoc()
,
read_conc()
,
read_fnames()
,
read_freqlist()
,
read_txt()
,
read_types()
(tks <- tokenize("The old man and the sea.")) write_tokens(tks, "file_with_tokens.txt") (tks2 <- read_tokens("file_with_tokens.txt"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.