LinguisticsTypes-0.0.0.3: Collection of types for natural language

NLP.Text.BTI

Description

An implementation of Int-mapped Texts with internalization. Wrap a Text with bti to receive a BTI. This internalizes the given Text, meaning that two text inputs x and y will yield the same BTI if they have the same textual representation.

Since internalized Text values are never released, be sure to use it sparingly. I.e. to internalize words, not full sentences.

Synopsis

# Documentation

newtype BTI Source #

A BTI behaves much like a Text, but is represented as an Int internally.

Constructors

 BTI FieldsgetBTI :: Int

Instances

Handy wrapper to internalize a Text and get a BTI.