anystyle-cli 1.4.4 → 1.4.5

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
2
  SHA256:
3
- metadata.gz: 7ddec6978a06257fd4b3a95f9b1b2cf6b26e2086332c9668a5ad98a7cdf25fa8
4
- data.tar.gz: bbc0c2056a99ec5bc189b68b54a6f4db2d9447bc5252d997c00e8cadb8c7c19c
3
+ metadata.gz: 0742bee12fa2064b6dad45fdba1477110fa50cb2f264ddb1c3f5832eefc35510
4
+ data.tar.gz: 2b7a651a5d635f6bc4dcab363a6aea97dee9e698530da0f77c8c85b37c616aff
5
5
  SHA512:
6
- metadata.gz: 565d8a68f74d893e4d2076ff0f8454bf841562f14437fdb0f8c46e9ea5a34473b132fe534be3e463a4a209cf75f038e651b18e35fd3fc721c01b05b3ea8c1ed7
7
- data.tar.gz: 1b8d7dfd33fc9d7183efd76ce40e1551ba89cccb6d928e87299ebd6b0a501da2f06bd81b7803bfe203231483de8d1dc62a5dd5c4137844fa4635ba342b5218cc
6
+ metadata.gz: 163eeaf89fbf1b9df79a9881a30698b799c236def3782ce9758e215e52714f99772382113a0c675efb54177dcd124939ae15b102213f7cc21e9b726323dc802a
7
+ data.tar.gz: 8e519c6c1c6af71e8d0ae970eb60dc36b462c7d1d83f8fd7d4e4aaea960ff4aacf984c8b78b168602b8531956ea11f676f76d63c118ea2bbcd343ac4a5c4b9f2
@@ -14,9 +14,9 @@ module AnyStyle
14
14
  def check(path)
15
15
  case path.extname
16
16
  when '.ttx'
17
- AnyStyle.finder.check path.to_s
17
+ AnyStyle.finder.check Wapiti::Dataset.open(path.to_s)
18
18
  when '.xml'
19
- AnyStyle.parser.check path.to_s
19
+ AnyStyle.parser.check Wapiti::Dataset.open(path.to_s)
20
20
  else
21
21
  raise ArgumentError, "cannot check untagged input: #{path}"
22
22
  end
@@ -18,7 +18,7 @@ module AnyStyle
18
18
  def train(path)
19
19
  case
20
20
  when File.extname(path) == '.xml'
21
- AnyStyle.parser.train path.to_s
21
+ AnyStyle.parser.train Wapiti::Dataset.open(path.to_s)
22
22
  AnyStyle.parser.model
23
23
  when File.directory?(path)
24
24
  AnyStyle.finder.train Dir[File.join(path, '*.ttx')]
@@ -1,5 +1,5 @@
1
1
  module AnyStyle
2
2
  module CLI
3
- VERSION = '1.4.4'.freeze
3
+ VERSION = '1.4.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anystyle-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil