Safe Haskell | None |
---|---|
Language | Haskell2010 |
NLP.Text.BTI.Internal
Description
This module keeps a persistent bimap
between Text
s and Int
s.
- btiBimap :: IORef (Bimap (HashMap ByteString Int) (Vector ByteString))
- btiBimapAdd :: ByteString -> Int
- btiBimapLookupInt :: Int -> ByteString
Documentation
btiBimap :: IORef (Bimap (HashMap ByteString Int) (Vector ByteString)) Source #
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.