Ruby Text Analysis

后端 未结 3 704
陌清茗
陌清茗 2020-12-30 07:02

Is there any Ruby gem or else for text analysis? Word frequency, pattern detection and so forth (preferably with an understanding of french)

3条回答
  •  有刺的猬
    2020-12-30 07:42

    The Mendicant Bug: NLP Resources for Ruby contains lots of useful Ruby NLP links.
    I had tried using the Ruby Linguistics stuff a long time ago, and remember having a lot of problems with it... I don't recommend jumping into that.

    If most of your text analysis involves stuff like counting ngrams and naive Bayes, I recommend just doing it on your own. Ruby has pretty good basic libraries and awesome support for regexes, so this should not be that tricky, and it will be easier for you to adapt stuff to the idiosyncrasies of the problem you are trying to solve.

    Like the Stanford parser gem, its possible to use Java libraries that solve your problem from within Ruby, but this can be tricky, so probably not the best way to solve a problem.

提交回复
热议问题