reddavis / Noun-Phrase-Detection

Basic noun phrase detection

Home Page:http://redwriteshere.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Noun Phrase Detection

files.ifi.uzh.ch/cl/hess/classes/ecl1/termerCIE.html

How To Install

gem sources -a http://gemcutter.org
sudo gem install noun_phrase_detector

How To Use

require 'rubygems'
require 'noun_phrase_detector'

lexicon_file = 'lexicon.txt'
text = "Some text"

a = NounPhraseDetector.new(text, lexicon_file)

a.extract_all_noun_phrases
  #=> Array of all phrases

a.count_noun_phrases
  #=> Hash = 'phrase' => count

Copyright © 2010 Red Davis. See LICENSE for details.

About

Basic noun phrase detection

http://redwriteshere.com

License:MIT License


Languages

Language:Ruby 100.0%