You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@znwang25 Nice to see this package. I haven't found another fuzzy matching library that works well for Chinese. Can the model generated by fit() be saved and reloaded? Also ,do you have evaluation of the overall quality of this library? Thanks for the info.
The text was updated successfully, but these errors were encountered:
Can the model generated by fit() be saved and reloaded?
Currently, there is no direct interface for saving and loading a model. But it's a good point, I may add it in the next update.
In the meantime, I think you can just use pickle to save the FCM object.
# fcm = FuzzyChineseMatch(ngram_range=(3, 3), analyzer='stroke')
# fcm.fit(test_dict)
# Saving the model
with open('model.pkl', 'wb') as outp:
pickle.dump(fcm, outp)
# Loading the saved model
with open('model.pkl', 'rb') as inp:
fcm1 = pickle.load(inp)
Do you have evaluation of the overall quality of this library.
@znwang25 Nice to see this package. I haven't found another fuzzy matching library that works well for Chinese. Can the model generated by fit() be saved and reloaded? Also ,do you have evaluation of the overall quality of this library? Thanks for the info.
The text was updated successfully, but these errors were encountered: