part_of_speech 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/part_of_speech.rb +2 -6
- data/part_of_speech.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
data/lib/part_of_speech.rb
CHANGED
|
@@ -16,7 +16,7 @@ class PartOfSpeech
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def tag(text)
|
|
19
|
-
@text = text.split(
|
|
19
|
+
@text = text.split(/\s+|,\s+|\.\s+|\:\s+|\;\s+|\'\s+/)
|
|
20
20
|
|
|
21
21
|
@pos = []
|
|
22
22
|
@text.each do |word|
|
|
@@ -123,9 +123,5 @@ class PartOfSpeech
|
|
|
123
123
|
end
|
|
124
124
|
end
|
|
125
125
|
end
|
|
126
|
-
|
|
127
|
-
def corpus_path
|
|
128
|
-
File.expand_path(File.dirname(__FILE__) + '/corpus/lexicon.txt')
|
|
129
|
-
end
|
|
130
|
-
|
|
126
|
+
|
|
131
127
|
end
|
data/part_of_speech.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{part_of_speech}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["reddavis"]
|
|
12
|
-
s.date = %q{2010-03-
|
|
12
|
+
s.date = %q{2010-03-05}
|
|
13
13
|
s.description = %q{Part of speech tagger based off Mark Watsons code}
|
|
14
14
|
s.email = %q{reddavis@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: part_of_speech
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- reddavis
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-03-
|
|
12
|
+
date: 2010-03-05 00:00:00 +00:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|