Skip to content
/ fasttag Public

A Go implementation of a Brill Part of Speech Tagger

Notifications You must be signed in to change notification settings

mvryan/fasttag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

A Go implementation of a Brill Part of Speech Tagger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages