Is it possible to have multiples tokens in dictionary?
I'm trying to add "Jr." in the dictionary for mixup, but it returns error "Use a Trie to match against sequences of tokens".
I know spantype can be defined like this from previous post -
defSpanType dphrases =~ trie bad disease, worse disease;
but this does not work for defDict. I've tried..
defDict suffixList =~ trie Jr.;
but I get statement error.
Please help! Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
Is it possible to have multiples tokens in dictionary?
I'm trying to add "Jr." in the dictionary for mixup, but it returns error "Use a Trie to match against sequences of tokens".
I know spantype can be defined like this from previous post -
defSpanType dphrases =~ trie bad disease, worse disease;
but this does not work for defDict. I've tried..
defDict suffixList =~ trie Jr.;
but I get statement error.
Please help! Thank you!
You can use the trie like a dictionary; just put all your phrases/words in a file, one entry per line. And in your Mixup file something like: