NaturalLanguageAlphabets-0.0.0.1: Alphabet and word representations

Safe HaskellNone

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.

TODO we'd like to use the stringable library but it depends on system-filepath which is not yet compatible with text>=1.

Synopsis

Documentation

newtype MultiChar Source

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

Constructors

MultiChar 

Interned