rbtagger 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,7 @@ module Brill
48
48
  end
49
49
  tag
50
50
  }
51
- results = tags.select{|tag| tag.last.match(/NN/) }
51
+ results = tags.select{|tag| tag.last.match(/NN/) and tag.first.size > 3 }
52
52
  if results.size > max
53
53
  counts = {}
54
54
  tags = []
@@ -2,7 +2,7 @@ module RbTagger #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -32,6 +32,9 @@ The details of her visitation, however, are unclear.
32
32
  Asked by Us if she were happy with the court outcome, Spears (clutching an Ed Hardy purse) smiled and told Us, "Yes."
33
33
  Next up: A status hearing set for July 15.
34
34
  The couple last appeared in court May 6. Spears was granted extended visitation — three days a week from 9 a.m. to 5 p.m. — of Sean Preston, 2, and Jayden James, 20 months.
35
+ )
36
+ SAMPLE_DOC3=%q(
37
+ TMZ.com: Britney celebrated getting overnights with her kids by going on a wild shopping trip for herself.With L.A.'s finest at her service, it was a total clusterf**k outside of Fred Segal as Brit Brit made her way out. The scene was crazy -- and it was all... Read more
35
38
  )
36
39
  def setup
37
40
  if !defined?($tagger)
@@ -134,6 +137,8 @@ The couple last appeared in court May 6. Spears was granted extended visitation
134
137
  assert results.include?(["Britney Spears", "NNP", 6])
135
138
  assert results.include?(["Jamie Spears", "NNP", 12])
136
139
  # puts results.inspect
140
+ results = tagger.suggest( SAMPLE_DOC3, 5 )
141
+ puts results.inspect
137
142
  end
138
143
 
139
144
  private
@@ -160,7 +160,7 @@
160
160
  <h1>rbtagger</h1>
161
161
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rbtagger"; return false'>
162
162
  <p>Get Version</p>
163
- <a href="http://rubyforge.org/projects/rbtagger" class="numbers">0.2.5</a>
163
+ <a href="http://rubyforge.org/projects/rbtagger" class="numbers">0.2.6</a>
164
164
  </div>
165
165
  <h4 style="float:right;padding-right:10px;"> &#x2192; &#8216;rbtagger&#8217;</h4>
166
166
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbtagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd A. Fisher
@@ -9,10 +9,19 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-25 00:00:00 -04:00
12
+ date: 2008-07-10 00:00:00 -04:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.7.0
24
+ version:
16
25
  description: A Simple Ruby Rule-Based Part of Speech Tagger
17
26
  email:
18
27
  - todd.fisher@gmail.com