s-yata / marisa-trie

MARISA: Matching Algorithm with Recursively Implemented StorAge
Other
506 stars 89 forks source link

read/map v0.1.6 trie with v>=0.2.6? #33

Open jmr opened 3 years ago

jmr commented 3 years ago

It would be nice to be able to read and map (or mostly map and read the rest) data from 0.1.5, which I know uses a different format. Are the formats close enough that it would be a moderately small amount of extra code to read? At first glance, I see Trie and MarisaTrie have most fields in common, but 0.1.6 has labels_ and links_ while 0.2.6 has bases_ and extras_. I didn't look at whether the formats of BitVector or other classes changed.