Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 863 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 863 Bytes

fasttag

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.

Sample.go

Source

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)
}

Output

Hello, world
Words:  [Hello , world]
Parts of Speech:  [UH , NN]