| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
NLP.Text.BTI.Internal
Description
This module keeps a persistent bimap between Texts and Ints
TODO make this a bimap Text - Vector. Compare performance when
printing backtracking results. (Do this after the Builder-based
backtracking is online)
Documentation
btiBimapAdd :: Text -> Int Source
Add Text and return Int key. Will return key for
existing string and thereby serves for lookup in left-to-right
direction.
btiBimapLookupInt :: Int -> Text Source
Lookup the InternedMultiChar based on an Int key. Unsafe totality
assumption.