Tools.Bubblelines()

new Bubblelines()

Bubblelines visualizes the frequency and distribution of terms in a corpus.

Tutorials:
Example
let config = {
    bins: 5, // number of bins to separate a document into
    docIndex: 1, //document index to restrict to (can be comma-separated list)
    maxDocs: 5, // maximum number of documents to show
    query: "love", // a query to search for in the corpus
    stopList: null, // a named stopword list or comma-separated list of words
  };

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

Members

bins

Properties:
Name Type Default Description
bins Number 50

The number of "bins" to divide the result into.

docId

Properties:
Name Type Description
docId String | Array.<String>

The document ID(s) to restrict the results to.

docIndex

Properties:
Name Type Description
docIndex Number | Array.<Number>

The document index(es) to restrict the results to.

maxDocs

Properties:
Name Type Default Description
maxDocs Number 50

The maximum number of documents to show.

query

Properties:
Name Type Description
query String | Array.<String>

A query or array of queries (queries can be separated by a comma). For query syntax, see the search documentation.

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.