LinguisticsTypes-0.0.0.2: Collection of types for natural language

Safe HaskellNone
LanguageHaskell2010

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

bti :: Text -> BTI Source

Handy wrapper to internalize a Text and get a BTI.