LinguisticsTypes-0.0.0.3: Collection of types for natural language

Safe HaskellNone
LanguageHaskell2010

NLP.Text.BTI.Internal

Description

This module keeps a persistent bimap between Texts and Ints.

Synopsis

Documentation

btiBimapAdd :: ByteString -> Int Source #

Add UTF8 ByteString and return Int key. Will return key for existing string and thereby serves for lookup in left-to-right direction.

btiBimapLookupInt :: Int -> ByteString Source #

Lookup the InternedMultiChar based on an Int key. Unsafe totality assumption.