compatible_instances | R Documentation |
Given an InstanceList object and some new documents (in the same two-column
data-frame format as that expected by make_instances
), this
yields a reference to a new InstanceList which is "compatible" with the old
one. These new instances can be used, for example, with MALLET's
topic-inferencing functionality.
compatible_instances(docs, instances)
docs |
data frame with |
instances |
reference InstanceList object |
"Compatible" instances have the same vocabulary in the same order as the reference InstanceList. In particular, this means words not in the reference vocabulary must be dropped.
The new InstanceList object can be written to disk with
write_instances
.
a reference to the new InstanceList object
infer_topics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.