Originally Posted by gouni
file : index
marisa-build -owords index.txt
give : words
I want to do the reverse-path
I have a word file, I want to find index file
It is possible the words file by marisa having the index?
Unfortunately the marisa tools do not offer a possibility to dump the marisa-file as a whole. With marisa-reverse-lookup you can retrieve the content line by line by typing the line number at the marisa prompt. This, of course, is time consuming in case of large files.
One thing you can do is the following. Type
marisa-predictive-search -n0 words > index.txt
Then type at the marisa prompt:
and so on.
This will output all entries starting with a,b,c and so on with additional information to index.txt. You can easily edit the file and remove the additional information. Be aware that marisa is case sensitive.