- 
                Notifications
    
You must be signed in to change notification settings  - Fork 16
 
Add AedTreeBuilder #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add AedTreeBuilder #127
Conversation
| 
           The helper functions used by   | 
    
| 
           @larissakl Do you have any plots that show the generated tree structure for a simple example lexicon? If so, it would be nice to include one in this PR.  | 
    
| 
           It looks like "word-boundary" is part of the lexicon but not in the tree. From the code it looks like word-boundary should be integrated though. Is this really the right picture given the lexicon?  | 
    


Adds an
AedTreeBuilderwhich can later be used for aTreeLabelsyncBeamSearch. The search tree only includes labels, without blanks, self-loops and skip-transitions.The sentence-end token is retrieved from a special lemma in the lexicon and added as a label reachable from the root.
As in the
CtcTreeBuilder, a word-boundary root will be added if a word-boundary token is present in the lexicon.I moved some helper functions from
CtcTreeBuildertoAbstractTreeBuilderso that I can easily reuse them.