A Go implementation of a Brill Part of Speech Tagger
This Part of Speech tagger is a Go port of the fasttag_v2 library by Mark Watson.
It keeping with the spirit of openness he provided this library dual licensed under both the LGPLv3 and Apache2 licenses.
package main
import (
"fmt"
"github.com/mvryan/fasttag"
)
func main() {
fmt.Println("Hello, world")
words := fasttag.WordsToSlice("Hello, world")
fmt.Println("Words: ", words)
pos := fasttag.BrillTagger(words)
fmt.Println("Parts of Speech: ", pos)
}
Hello, world
Words: [Hello , world]
Parts of Speech: [UH , NN]