This PR adds lt-paradigm which is similar to lt-expand and hfst-expand except that instead of listing all forms in the transducer it only lists those that match an input pattern.
For each line of the input, * is replaced with every letter in the alphabet and <*> with every tag and the result is intersected with the fst and the results printed line-by-line.
This is nearly equivalent to hfst-regexp2fst | hfst-compose -1 - -2 $1 | hfst-expand -c 0 but with different tokenization of the input and there can be multiple lines of input.
This PR adds
lt-paradigm
which is similar tolt-expand
andhfst-expand
except that instead of listing all forms in the transducer it only lists those that match an input pattern.For each line of the input,
*
is replaced with every letter in the alphabet and<*>
with every tag and the result is intersected with the fst and the results printed line-by-line.This is nearly equivalent to
hfst-regexp2fst | hfst-compose -1 - -2 $1 | hfst-expand -c 0
but with different tokenization of the input and there can be multiple lines of input.