NaturalLanguageAlphabets-0.0.1.0: Alphabet and word representations

Safe HaskellNone
LanguageHaskell2010

NLP.Alphabet.MultiChar

Contents

Description

An alphabet, where each character is a short bytestring.

Due to the overhead this incurs, we use ShortByteStrings internally. We also provide an Interned instance to further reduce overhead using hash-consing.

Synopsis

MultiChars capture UTF characters that are encoded using one or more

newtype MultiChar Source

Wrap a short bytestring. Read and Show instances behave like for normal strings.

Constructors

MultiChar 

Fields

getMultiChar :: Text
 

Interned