advancedlogic / go-freeling Goto Github PK
View Code? Open in Web Editor NEWGolang Natural Language Processing
License: GNU General Public License v3.0
Golang Natural Language Processing
License: GNU General Public License v3.0
compile the mitie lib with make install, but when try to build gofreeling.go getting:
go build -v gofreeling.go
github.com/advancedlogic/go-freeling/models
github.com/advancedlogic/go-freeling/terminal
github.com/advancedlogic/go-freeling/nlp
# github.com/advancedlogic/go-freeling/nlp
nlp/nlp.go:69: undefined: MITIE
nlp/dictionary.go:200:15: not enough arguments in call to "gopkg.in/fatih/set.v0".New
have ()
want ("gopkg.in/fatih/set.v0".SetType)
nlp/dictionary.go:212:6: cannot use "gopkg.in/fatih/set.v0".New() (type "gopkg.in/fatih/set.v0".Interface) as type *"gopkg.in/fatih/set.v0".Set in assignment: need type assertion
nlp/dictionary.go:212:15: not enough arguments in call to "gopkg.in/fatih/set.v0".New
have ()
want ("gopkg.in/fatih/set.v0".SetType)
nlp/disambiguator.go:96:23: cannot use "gopkg.in/fatih/set.v0".New() (type "gopkg.in/fatih/set.v0".Interface) as type *"gopkg.in/fatih/set.v0".Set in assignment: need type assertion
nlp/disambiguator.go:96:32: not enough arguments in call to "gopkg.in/fatih/set.v0".New
have ()
want ("gopkg.in/fatih/set.v0".SetType)
nlp/grammar.go:99:14: cannot use "gopkg.in/fatih/set.v0".New() (type "gopkg.in/fatih/set.v0".Interface) as type *"gopkg.in/fatih/set.v0".Set in field value: need type assertion
nlp/grammar.go:99:23: not enough arguments in call to "gopkg.in/fatih/set.v0".New
have ()
want ("gopkg.in/fatih/set.v0".SetType)
nlp/grammar.go:103:9: cannot use "gopkg.in/fatih/set.v0".New() (type "gopkg.in/fatih/set.v0".Interface) as type *"gopkg.in/fatih/set.v0".Set in field value: need type assertion
nlp/grammar.go:103:23: not enough arguments in call to "gopkg.in/fatih/set.v0".New
have ()
want ("gopkg.in/fatih/set.v0".SetType)
nlp/grammar.go:104:23: not enough arguments in call to "gopkg.in/fatih/set.v0".New
have ()
want ("gopkg.in/fatih/set.v0".SetType)
nlp/grammar.go:104:23: too many errors
Trying to build go-freeling on OpenBSD 6.2 there's an issue calling ld
$ go build gofreeling.go
# _/home/jherrero/code/go/src/github.com/advancedlogic/go-freeling/nlp
/usr/bin/ld: cannot find -lmitie
cc: error: linker command failed with exit code 1 (use -v to see invocation)
All complied ok on Mac OSX once I got MITIE installed.
Ran ./gofreeling and hit a panic - output below. Any help appreciated.
Go - Freeling - Natural Language Processing for Golang
This is a partial port of Freeling 3.1
Init Natural Language Processing Engine
[2015-06-13 12:20:03] [PANIC:tokenizer.go:36] Error opening file ./data//en/tokenizer.dat
panic: Error opening file ./data//en/tokenizer.dat
goroutine 1 [running]:
github.com/kdar/factorlog.(*FactorLog).Panic(0xc20810eea0, 0xc208079d50, 0x1, 0x1)
/Users/andybritcliffe/go/src/github.com/kdar/factorlog/factorlog.go:405 +0xc8
github.com/advancedlogic/go-freeling/nlp.NewTokenizer(0xc20811abc0, 0x18, 0x44edb20)
/Users/andybritcliffe/go/src/github.com/advancedlogic/go-freeling/nlp/tokenizer.go:36 +0x82a
github.com/advancedlogic/go-freeling/nlp.NewNLPEngine(0xc2080d56b0, 0xc2080328f0)
/Users/andybritcliffe/go/src/github.com/advancedlogic/go-freeling/nlp/nlp.go:80 +0x13d
github.com/advancedlogic/go-freeling/engine.(*Engine).InitNLP(0xc20811ab20)
/Users/andybritcliffe/go/src/github.com/advancedlogic/go-freeling/engine/engine.go:65 +0x752
main.main()
/Users/andybritcliffe/go/src/github.com/advancedlogic/go-freeling/gofreeling.go:26 +0x4b
goroutine 6 [runnable]:
github.com/cheggaaa/pb.(*ProgressBar).writer(0xc208062f00)
/Users/andybritcliffe/go/src/github.com/cheggaaa/pb/pb.go:348
created by github.com/cheggaaa/pb.(*ProgressBar).Start
/Users/andybritcliffe/go/src/github.com/cheggaaa/pb/pb.go:104 +0xb6
How was this dataset created? How can I support other languages?
$ go build gofreeling.go
# github.com/advancedlogic/go-freeling/nlp
/usr/bin/ld: cannot find -lmitie
collect2: error: ld returned 1 exit status
Trailing whitespace in document content causes nil return of AnalyzeText() method. Seems that it's panic in Workflow() method and defer function providing recovery returning nil value.
Greetings,
I hope that your day is going well.
Being a bit new to Golang, I am finding it very exciting and am learning quickly, but recently I came across your Go-Freeling (https://github.com/advancedlogic/go-freeling) and wanted to see about getting it to run for a project that i am working on lately.
I compiled and installed the external library MITIE - https://github.com/mit-nlp/MITIE, but now when I try to compile go-freeling (go build gofreeling.go), I am getting an error with the Goose library (https://github.com/advancedlogic/GoOse), which is also know is installed in the src directory as well.
spartan:~/work/go-freeling$ go get github.com/advancedlogic/go-freeling
I looked inside the nlp/crawler.go file and see the structure:
func (this *Crawler) Analyze(url string) *goose.Article {
g := goose.New()
article := g.ExtractFromUrl(url)
return article
}
Not sure how to fix this in your go-freeling.
Can you please look into this for me?
Thanks,
Lonnie
Got this issue when trying to run go build gofreeling.go
../go/src/github.com/advancedlogic/go-freeling/engine/config.go:11: undefined: toml.TomlTree
Can anyone help me with this?
I downloaded the data and cannot identify which format you're using. I've opened the WordNet from NLTK Python library for natural language processing. I'm intersted in Go now, I've found your but I cannot identify what you using and how to load the WordNet for my own language in it. Could you make it more clear? Thanks
Hi,
I would like to use your like as an API without any webserver... Could you support that?
Can you provide more examples which shows how to your your lib?
Thanks,
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot fin
d -lmitie
collect2.exe: error: ld returned 1 exit status
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.