Git Product home page Git Product logo

golibstemmer's People

Contributors

rjohnsondev avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

golibstemmer's Issues

Fatal error attempting to go get

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.

Locks

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.

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.