Giter Club home page Giter Club logo

go-freeling's People

Contributors

advancedlogic avatar drankou avatar dullgiulio avatar i0n avatar shugyousha avatar vitaliiborodii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-freeling's Issues

issue in building gofreeling.go in Mac

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

Issue building on OSX

  1. brew install mitie
  2. go get <all the dependencies>
  3. go build gofreeling.go
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

Issue building on OpenBSD 6.2

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)

[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

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

NLP Data

How was this dataset created? How can I support other languages?

Error compiling on ubuntu

$ 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 text causes error

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.

go-freeling not compiling cleanly

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

github.com/advancedlogic/go-freeling/nlp

src/github.com/advancedlogic/go-freeling/nlp/crawler.go:27: g.ExtractFromUrl undefined (type goose.Goose has no field or method ExtractFromUrl, but does have ExtractFromURL)

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

undefined: toml.TomlTree

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?

What's the data format you using?

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

question: API support

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,

can not find -lmitie

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

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.