s-yata / marisa-trie

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

Reading v0.1.5 blobs with the latest version #19

Closed glebm closed 5 years ago

glebm commented 5 years ago

Hi,

Did the serialization format change between 0.1.5 and 0.2.4? What were the changes?

Thanks, Gleb

glebm commented 5 years ago

Ended up linking both versions and attempting to load with v0.1.5 if v0.2.4 fails.

glebm commented 5 years ago

Loading with 0.1.5 and then creating a 0.2.6 trie from the result doesn't quite work, because the key order changes. Adding keys with decreasing weights doesn't fix it either.

glebm commented 5 years ago

Could not get the same key order no matter what I tried, perhaps due to the the Keyset's internal order.