engtagger 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/engtagger/pos_tags.hash +0 -0
- data/lib/engtagger/pos_words.hash +0 -0
- data/lib/engtagger/version.rb +1 -1
- data/lib/engtagger.rb +1 -1
- data/test/test_engtagger.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 65db6f78c5abff2e601841262e2aabcf936d80df76a3fecab33f4e9d730e02f5
|
4
|
+
data.tar.gz: '04896cc7bfeb84c9f720d8493f08d4b5537dcb9a177f1584d621dad6fbd1184b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c8169ba6706cffc2afc02f93c8d1916afdb08e8f99d7e5705c645efcf52fcba08edd593079fc267091582f779cf48db92ab3c9852cbb06e494f754c5f18b94
|
7
|
+
data.tar.gz: 70ad3a969bb095f72804917bf1cf906d81466b9b25dba8a7c3616ab12f8500f0a490e08af8ba4bcbbff58cdb9f04fd3cc06b2317dfbe57643bb11adaeb94f946
|
data/lib/engtagger/pos_tags.hash
CHANGED
Binary file
|
Binary file
|
data/lib/engtagger/version.rb
CHANGED
data/lib/engtagger.rb
CHANGED
@@ -202,7 +202,7 @@ class EngTagger
|
|
202
202
|
# assuming that we start analyzing from the beginninga new sentence...
|
203
203
|
@conf[:current_tag] = 'pp'
|
204
204
|
@conf.merge!(params)
|
205
|
-
unless File.
|
205
|
+
unless File.exist?(@conf[:word_path]) and File.exist?(@conf[:tag_path])
|
206
206
|
print "Couldn't locate POS lexicon, creating a new one" if @conf[:debug]
|
207
207
|
@@hmm = Hash.new
|
208
208
|
@@lexicon = Hash.new
|
data/test/test_engtagger.rb
CHANGED
@@ -21,7 +21,7 @@ EOD
|
|
21
21
|
@tagger = EngTagger.new
|
22
22
|
tagpath = File.join($ENGTAGGER_LIB, @tagger.conf[:tag_path])
|
23
23
|
wordpath = File.join($ENGTAGGER_LIB, @tagger.conf[:word_path])
|
24
|
-
if !File.
|
24
|
+
if !File.exist?(tagpath) or !File.exists?(wordpath)
|
25
25
|
@tagger.install
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engtagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoichiro Hasebe
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby port of Perl Lingua::EN::Tagger, a probability based, corpus-trained
|
14
14
|
tagger that assigns POS tags to English text based on a lookup dictionary and a
|
@@ -37,7 +37,7 @@ files:
|
|
37
37
|
homepage: http://github.com/yohasebe/engtagger
|
38
38
|
licenses: []
|
39
39
|
metadata: {}
|
40
|
-
post_install_message:
|
40
|
+
post_install_message:
|
41
41
|
rdoc_options: []
|
42
42
|
require_paths:
|
43
43
|
- lib
|
@@ -52,9 +52,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
|
-
|
56
|
-
|
57
|
-
signing_key:
|
55
|
+
rubygems_version: 3.3.3
|
56
|
+
signing_key:
|
58
57
|
specification_version: 4
|
59
58
|
summary: A probability based, corpus-trained English POS tagger
|
60
59
|
test_files:
|