rjohnsondev / golibstemmer Goto Github PK
View Code? Open in Web Editor NEWGo bindings for the snowball libstemmer library including porter 2
Go bindings for the snowball libstemmer library including porter 2
Thank you for working on these bindings for the Snowball C library. I would really like to get this working in Go but am having problems installing.
I don't understand why it is referencing C files that aren't included in the package. But it is, and Go is not happy. See the error below I got when trying to go get.
I see libstemmer.h comes with the C Snowball tarball, but not stdio.h, etc. I compiled the C source into the stemwords executable and installed that, which I supposed was the right thing to do. If I'm supposed to copy some of the C source files somewhere then I have no idea what to do. This was the error on go get:
go get github.com/rjohnsondev/golibstemmer
/home/go/src/github.com/rjohnsondev/golibstemmer/stemmer.go:17:24: fatal error: libstemmer.h: No such file or directory
#include <libstemmer.h>
^
compilation terminated.
According to the docs, snowball stemmer is not thread-safe. It would be if the go wrapper uses a lock around it since the natural assumption in go is that the code is thread-safe.
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.