Library for NLP: counting word syllables, words, sentences

249 views
Skip to first unread message

Johann Höchtl

unread,
Nov 15, 2016, 4:16:27 AM11/15/16
to golang-nuts
Is there a pure Golang library to detect words / sentences / syllables? https://github.com/advancedlogic/go-freeling might be able to do that but has no API.

Daniel Whitenack

unread,
Nov 15, 2016, 8:33:04 PM11/15/16
to golang-nuts
Hi Johann,

Looks like there are a good number of packages listed here:


In particular, it sounds like this one has some of what you need:


Daniel

Johann Höchtl

unread,
Nov 16, 2016, 2:29:22 AM11/16/16
to golang-nuts


Am Mittwoch, 16. November 2016 02:33:04 UTC+1 schrieb Daniel Whitenack:
Hi Johann,

Looks like there are a good number of packages listed here:


In particular, it sounds like this one has some of what you need:



That one I identified too. It totally lacks  documentation, but looks otherwise compeling. I settled on

    "github.com/blevesearch/segment"  // Unicode Word segmentation
    "github.com/neurosnap/sentences"  // Sentence segmentation
    "github.com/speedata/hyphenation"  // hyphenation


for now but a more integrated library like freeling would be nice to use, for sure.
Johann


Reply all
Reply to author
Forward
0 new messages