advancedlogic / go-freeling

Golang Natural Language Processing
GNU General Public License v3.0
832 stars 70 forks source link

issue in building gofreeling.go in Mac #6

Open roger2000hk opened 9 years ago

roger2000hk commented 9 years ago

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
ahamidi commented 8 years ago

You can install MITIE using homebrew:

brew update
brew install mitie
thomasmodeneis commented 8 years ago

Hi,

Ive managed to install mitie #2 however after this the error changed to:

/tmp/go-build297469961/github.com/advancedlogic/go-freeling/nlp/_obj/mitie.cgo2.o: In function `get_entity':
../github.com/advancedlogic/go-freeling/nlp/mitie.go:28: undefined reference to `mitie_ner_get_detection_score'
collect2: error: ld returned 1 exit status

Any ideas?