Skip to content
Snippets Groups Projects
Unverified Commit a8fc99d0 authored by Allan Hamzic's avatar Allan Hamzic Committed by GitHub
Browse files

[src] Template-ize Grammar-FST code (#4067)

* This pull request converts GrammarFst into a class template: GrammarFstTpl<FST>. This allows for GrammarFsts to be created with multiple types of FSTs instead of being restricted to just ConstFst<StdArc>. The conversion to a class template had dependencies in the custom GrammarFst ArcIterator, make-grammar-fst program, and everywhere where GrammarFst was used as a template argument. GrammarFstTpl<FST> is now instantiated as its current implementation with ConstFst<StdArc> as well as a new instantiation with StdVectorFst.
parent a84f6ec8
No related branches found
No related tags found
No related merge requests found
Showing
with 339 additions and 271 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment