Giter Site home page Giter Site logo

estem's Introduction

Stempel (polish stemmer) for Erlang

License: Apache 2 for the bindings (Stempel has its own license). Also, these two files are blobs:

  • priv/lucene-1.4-final.jar
  • priv/stempel-1.0.jar

You can compile them from here http://www.getopt.org/stempel/#distrib

Start node in dev mode

erl -pa $(pwd)/ebin deps/*/ebin -sname alice

Start application

application:ensure_all_started(estem).

Test that java works

estem_java:pid().

Run stemmer

estem_java:stem([<<"do">>, <<"wynajęcia">>, <<"przytulne">>, <<"bezczynszowe">>, <<"mieszkaniefgxxdd">>, <<"444">>]).

Whole example

~/erlang/estem|master $ erl -pa $(pwd)/ebin deps/*/ebin -sname alice
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V6.4  (abort with ^G)
(alice@theta)1> application:ensure_all_started(estem).
16:58:07.890 [info] Application lager started on node alice@theta
16:58:08.040 [info] Java Info:  Estem Node Started at: xxxd_java@theta
16:58:08.040 [notice] Java node started
16:58:08.045 [info] Application estem started on node alice@theta
{ok,[syntax_tools,compiler,goldrush,lager,estem]}
(alice@theta)2>
(alice@theta)2> estem_java:pid().
<10787.1.0>
(alice@theta)3>
(alice@theta)3> estem_java:stem([<<"do">>, <<"wynajęcia">>, <<"przytulne">>, <<"bezczynszowe">>, <<"mieszkaniefgxxdd">>, <<"444">>]).
[<<"do">>,
 <<119,121,110,97,106,25,99,105,97>>,
 <<"przytulny">>,<<"bezczynszowy">>,<<"mieszkaniefgxxdda">>,
 <<"444">>]

Credits

Credits to Fernando Benavides from Inaka and his sample project for jinterface https://github.com/elbrujohalcon/jinterface-sample/

estem's People

Contributors

arcusfelis avatar elbrujohalcon avatar

Stargazers

Paweł Pikuła avatar

Watchers

 avatar James Cloos avatar Maciej Gawinecki avatar

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.