Skip to content
/ gorf Public

gorf provides an interface to communicate with the Frog server through Go

License

Notifications You must be signed in to change notification settings

machiel/gorf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Overview

Twitter GoDoc

Frog is Natural Language Processing software developed for Dutch. Frog provides a server, which can be accessed through TCP. This library tries to simplify working and communicating with this server.

Gorf provides a simple interface to communicate with a running frog server.

Not everything for the Token struct is implemented, contributions are welcome :).

License

Gorf is licensed under a MIT license.

Installation

A simple go get github.com/Machiel/gorf should suffice.

Usage

Example

package main

import (
    "fmt"

    "github.com/Machiel/gorf"
)

func main() {

    client, err := gorf.NewClient("192.168.99.100:9919")

    if err != nil {
        panic(err)
    }

    sentences, err := client.Parse("Hoi, ik ben Machiel. Hebben we verbinding?")

    if err != nil {
        panic(err)
    }

    for i, sentence := range sentences {
        fmt.Printf("Sentence %d\n", i)

        for _, token := range sentence {
            fmt.Println(token.Lemma)
        }
    }
}

About

gorf provides an interface to communicate with the Frog server through Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages