instance_text | R Documentation |
"Reads" a MALLET instance as a text string for quick inspection.
instance_text(instance, vocab = instances_vocabulary(instance), collapse = " ")
instance |
reference to an instance |
vocab |
character vector giving the vocabulary |
collapse |
passed on to |
In the case of DfR data, the resulting string will not have meaningful word order: not very informative except for spot-checks for garbage data, correct stop-wording, etc.
Repeated calls will be much faster if you retrieve the vocabulary separately
and pass that in as vocab
. An InstanceList
guarantees that all
Instances
have the same vocabulary.
A string "spelling out" the instance text
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.