Question regarding OpBuilder
: does it allow for efficient merging/splitting of Fst
s?
#163
-
Does |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I think I just answered my own question based on something I ran into in the docs under "Quirks":
I think the answer is "yes"? https://github.com/BurntSushi/fst/blob/master/fst-bin/src/merge.rs#L263-L273 I wonder if it might be useful to provide APIs that easily allow for merging of disjoint FSTs, or allow for splitting of existing FSTs. Probably not, but it would be worthwhile at least to further highlight in the documentation that this is possible using |
Beta Was this translation helpful? Give feedback.
-
No. There are zero cases where an
No.
I don't think so. I don't see the issue with folks using the existing Improvements to the docs are always welcome. |
Beta Was this translation helpful? Give feedback.
No. There are zero cases where an
Fst
can be mutated in place.No.
OpBuilder
only provides efficient implementations of some set operations on an arbitrary number of FSTs. The result of those set operations can be used to produce a new FST. Producing a new FST is done in the exact same way as you would do it by hand: you feed it a lexicographically sorted sequence of keys with corresponding values. Once the sequence is complete, the bu…