icat.anchors#

The parent anchor class and a few anchor types.

Anchors are the interactive featuring component of ICAT, an anchor class determines how a feature is computed on the data, and the user interacts with the UI widget of the anchor to modify the feature (e.g. what keywords it searches for.)

Classes

Anchor([container])

The main parent anchor class, this should be subclassed, not directly used.

DictionaryAnchor([container])

A bag-of-words feature that returns raw count value sum of the number of occurrences of each word in the given keywords.

SimilarityAnchorBase([container])

A base class to inherit from for anchors that featurize based on some metric of similarity to a set of one or more target reference texts.

TFIDFAnchor([container])

A similarity anchor that uses cosine similarity between the TF-IDF vectors of the text data and the target texts.