Giter Club home page Giter Club logo

linguo's Introduction

Linguo

Linguo is a Go Natural Language Processing library.

Linguo is based on go-freeling, which is a port of Freeling. Linguo started as an attempt to clean up and improve go-freeling, adding more features on top of it.

This is still a WIP and more documentation will follow.

Usage

go get -u github.com/ruggi/linguo

import "github.com/ruggi/linguo"

...

engine := linguo.NewEngine()
engine.InitNLP("./data", "en")
result := engine.NLP.Workflow("Linguo was a grammar-correcting robot created by Lisa Simpson.")
...

Note: Linguo uses MITIE for entity extraction, so be sure to have it installed. On MacOS you can just install it with Homebrew:

$ brew install mitie

TBC

Examples

See examples/example.go.

$ go run examples/example.go
Sentence: "Linguo was a grammar-correcting robot created by Lisa_Simpson ."
Entities:
	* [NP] Linguo (linguo) 1.0000%
	* [VBD] was (be) 1.0000%
	* [DT] a (a) 0.5000%
	* [VBG] grammar-correcting (grammar-correcting) 1.0000%
	* [NN] robot (robot) 1.0000%
	* [VBN] created (create) 0.8027%
	* [IN] by (by) 0.9972%
	* [NP] Lisa_Simpson (lisa_simpson) 1.0000%
	* [Fp] . (.) 1.0000%

Sentence: "It is from the eighteenth episode of Season_12 ."
Entities:
	* [PRP] It (it) 1.0000%
	* [VBZ] is (be) 1.0000%
	* [IN] from (from) 1.0000%
	* [DT] the (the) 1.0000%
	* [JJ] eighteenth (18) 0.6002%
	* [NN] episode (episode) 1.0000%
	* [IN] of (of) 0.9999%
	* [NP] Season_12 (season_12) 1.0000%
	* [Fp] . (.) 1.0000%

Entities:
* [PERSON] Linguo 0.6144
* [PERSON] Lisa Simpson 1.4056

Unknown entities:
* Season 12 (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.