Tools.Topics()

new Topics()

The Topics tool provides a rudimentary way of generating term clusters from a document or corpus and then seeing how each topic (term cluster) is distributed across the document or corpus.

Tutorials:
Example
let config = {
    "iterations": null,
    "perDocLimit": null,
    "seed": null,
    "stopList": null,
    "termsPerTopic": null,
    "topics": null
  };

  loadCorpus("austen").tool("Topics", config);

Members

iterations

Properties:
Name Type Default Description
iterations Number 100

The number of iterations.

perDocLimit

Properties:
Name Type Default Description
perDocLimit Number 1000

The number of terms to limit each document to.

seed

Properties:
Name Type Default Description
seed Number 0

The seed to use for random number generation.

stopList

Properties:
Name Type Default Description
stopList String auto

A comma-separated list of words, a named list or a URL to a plain text list, one word per line. By default this is set to 'auto' which auto-detects the document's language and loads an appropriate list (if available for that language). Set this to blank to not use the default stopList. For more information see the Stopwords documentation.

termsPerTopic

Properties:
Name Type Default Description
termsPerTopic Number 10

The number of terms per topic.

topics

Properties:
Name Type Default Description
topics Number 10

The number of topics.