s-yata / marisa-trie

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

Reading v0.1.5 blobs with the latest version #19

Closed glebm closed 6 years ago

glebm commented 6 years ago

Hi,

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

Thanks, Gleb

glebm commented 6 years ago

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

glebm commented 6 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 6 years ago

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