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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8a32003a9025611e547589fcc5e8d9dd906f6540
4
- data.tar.gz: dbdf70f16444fe60178b1013b72a5155a2ae66fd
2
+ SHA256:
3
+ metadata.gz: 65db6f78c5abff2e601841262e2aabcf936d80df76a3fecab33f4e9d730e02f5
4
+ data.tar.gz: '04896cc7bfeb84c9f720d8493f08d4b5537dcb9a177f1584d621dad6fbd1184b'
5
5
  SHA512:
6
- metadata.gz: 00da48be968ddb0b7d314df05a5ba6bc2c33376ae8d1c5fda5b60c6cd72b9b8d44b73a5c553d13b1972e199f0d0d7b4a8de957ee92a03c39216f4a87c86df8a2
7
- data.tar.gz: '08842a7e26fd7579fada8c63d1af4e2176015c470a297f1147183bbeeb91e4d4c00b8062873e53d3c815ee4d19abb45ad11104f02974a1a9cbd17e2f9c25ab5c'
6
+ metadata.gz: 04c8169ba6706cffc2afc02f93c8d1916afdb08e8f99d7e5705c645efcf52fcba08edd593079fc267091582f779cf48db92ab3c9852cbb06e494f754c5f18b94
7
+ data.tar.gz: 70ad3a969bb095f72804917bf1cf906d81466b9b25dba8a7c3616ab12f8500f0a490e08af8ba4bcbbff58cdb9f04fd3cc06b2317dfbe57643bb11adaeb94f946
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module EngTagger
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.exists?(@conf[:word_path]) and File.exists?(@conf[:tag_path])
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
@@ -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.exists?(tagpath) or !File.exists?(wordpath)
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.1
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: 2016-10-12 00:00:00.000000000 Z
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
- rubyforge_project:
56
- rubygems_version: 2.5.1
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: