NaturalLanguageAlphabets-0.0.1.0: Alphabet and word representations

Safe HaskellNone
LanguageHaskell2010

NLP.Alphabet.IMMC.Internal

Description

This module keeps a persistent bimap between InternedMultiChars and Ints

TODO make this a bimap Text - Vector. Compare performance when printing backtracking results. (Do this after the Builder-based backtracking is online)

Synopsis

Documentation

immcBimapAdd :: InternedMultiChar -> Int Source

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

immcBimapLookupInt :: Int -> InternedMultiChar Source

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