ruby-nlp

Ruby Binding for Stanford Pos-Tagger and Name Entity Recognizer

  • 所有者: tiendung/ruby-nlp
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Ruby-NLP

This project demoes how to use the Stanford Pos-Tagger and Name Entity Recognizer within Ruby.

Prerequisites

prompt> ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
prompt> rvm -v
rvm 1.25.28 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
prompt>

Install the RJB gem

prompt> bundle install
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rjb 1.4.9
Using bundler 1.6.2
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
prompt>

Run the demo app

prompt> ruby nlp.rb 
Loading classifier from /Users/johndoe/Downloads/ruby-nlp/ner-eng-ie.crf-4-conll.ser.gz ... done [0.4 sec].
[ Run task 1 10 times ] Start 'NER' at 01:37:39
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
Getting data from Good afternoon Rajat Raina, how are you today? (default encoding)
Good/O afternoon/O Rajat/PERSON Raina/PERSON ,/O how/O are/O you/O today/O ?/O 
Good/JJ afternoon/NN Rajat/NNP Raina,/NNP how/WRB are/VBP you/PRP today?/VB 
[ Run task 1 10 times ] Spent 0 seconds on 'NER'
prompt>

主要指標

概覽
名稱與所有者tiendung/ruby-nlp
主編程語言Ruby
編程語言Ruby (語言數: 1)
平台
許可證
所有者活动
創建於2008-08-11 10:50:56
推送於2014-08-05 10:23:49
最后一次提交2014-08-05 17:23:48
發布數0
用户参与
星數92
關注者數10
派生數14
提交數4
已啟用問題?
問題數0
打開的問題數0
拉請求數1
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?