Fork me on GitHub
#data-science
<
2019-07-04
>
misha09:07:15

greetings! is there a way to run open-nlp on js client? this one seems to work only in server side node. https://github.com/mbejda/Node-OpenNLP I guess what I'm asking is either - how can I use http://opennlp.sourceforge.net/models-1.5/ models in browser? or - how to make java run in browser as js? https://www.graalvm.org/ ?

misha09:07:26

the actual task is to split text into chunks smarter than just (str/split s #"\s+") w/o going to server. eg ["Prior" "to" "the Internet,"], instead of ["Prior" "to" "the" "Internet,"]

nblumoe12:07:54

did you consider http://compromise.cool/ ? maybe that is good enough, I used it from CLJS for some exploratory work

bellissimo 8
misha13:07:09

no, but I'll have a look, thank you

misha13:07:43

looks promising, I hope it does not mine bitcoins though opieop

nblumoe13:07:34

ha, yeah. don't expect it to beat OpenNLP 🙂 but for the sentence splitting it might be good enough and maybe you can also leverage contraction handling and other features

misha13:07:22

the only requirement so far is to not boil user's laptop or phone

misha13:07:07

and it claims to be usable between onKeyDown, so that is reassuring. Thank you again,