Copyright | (c) 2019-20202023 Dakotah Lambert |
---|---|
License | MIT |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module implements a string extension learner for the TSL class. A variant of the tier-finding algorithm of Jardine and McMullin (2017) is used along with a notion of a potential valid tier-factor. This is an efficient online conversion of their algorithm.
For the original work, see https://doi.org/10.1007/978-3-319-53733-7_4
Since: 0.3
Documentation
A representation of a TSL grammar.
fTSL :: Ord a => Int -> [a] -> TSLG a Source #
Return the set of subsequence-interveners pairs of length \(k\) in a given word, as well as the adjacency factors of length \(k\) and \(k+1\). If a word is short enough to not contain any \(k\)-factors, the entire word, appropriately anchored, is included in the set.