rbtagger 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/brill/tagger.rb CHANGED
@@ -39,12 +39,12 @@ module Brill
39
39
  if phrase.empty?
40
40
  mark = i if tag.last.match(/PRP\$|DT/)
41
41
  if tag.last == 'NNP' and mark != -1
42
- phrase = [ tags[mark..i] ]
42
+ phrase = tags[mark..i]
43
43
  #mark = -1
44
44
  end
45
45
  mark = -1 if i - mark > 8
46
46
  elsif tag.last.match(/NN/)
47
- phrase << tag
47
+ phrase += tag
48
48
  else
49
49
  phrases << phrase
50
50
  phrase = []
@@ -2,7 +2,7 @@ module RbTagger #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd A. Fisher
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-24 00:00:00 -05:00
12
+ date: 2010-01-25 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15