Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hkazanci93/e97237728475e1db3a960409e8cfab59 to your computer and use it in GitHub Desktop.
Save Hkazanci93/e97237728475e1db3a960409e8cfab59 to your computer and use it in GitHub Desktop.
Turn Sentences into Edges using Aho-Corasick algorithm
bg = GearsBuilder('KeysReader')
bg.foreach(process_item)
bg.count()
bg.register('sentence:*', mode="async_local",onRegistered=OnRegisteredAutomata)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment