Skip to content

Instantly share code, notes, and snippets.

@jdkato
Last active July 13, 2018 17:13
Show Gist options
  • Select an option

  • Save jdkato/a0cb93c8fc16e98527f9bb5b4ff299a7 to your computer and use it in GitHub Desktop.

Select an option

Save jdkato/a0cb93c8fc16e98527f9bb5b4ff299a7 to your computer and use it in GitHub Desktop.
`prose` v2.0.0 example
package main
import (
"gopkg.in/jdkato/prose.v2"
)
func main() {
doc, _ := prose.NewDocument("This is a sentence.")
for _, token := range doc.Tokens() {
fmt.Println(token.Text)
// [This, is, a, sentence, .]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment