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 +2 -2
- data/lib/rbtagger/version.rb +1 -1
- metadata +2 -2
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 =
|
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
|
47
|
+
phrase += tag
|
48
48
|
else
|
49
49
|
phrases << phrase
|
50
50
|
phrase = []
|
data/lib/rbtagger/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2010-01-25 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|