Skip to content

Instantly share code, notes, and snippets.

@wfng92
Last active June 18, 2019 04:59
Show Gist options
  • Select an option

  • Save wfng92/803e1ed80a902f2e6842715577441325 to your computer and use it in GitHub Desktop.

Select an option

Save wfng92/803e1ed80a902f2e6842715577441325 to your computer and use it in GitHub Desktop.
from snownlp import seg
seg.train('custom_seg.txt')
seg.save('seg.marshal')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment