anystyle-cli 1.4.3 → 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: ab3bfdd549d2eff1671cd2ed4ae9178dd95b1c333990ed5f157174f56b2ae099
4
- data.tar.gz: 679bcd43cea4ab135ef1395e85bd58d78e7948d347e3383cf96354da366340cd
3
+ metadata.gz: 0742bee12fa2064b6dad45fdba1477110fa50cb2f264ddb1c3f5832eefc35510
4
+ data.tar.gz: 2b7a651a5d635f6bc4dcab363a6aea97dee9e698530da0f77c8c85b37c616aff
5
5
  SHA512:
6
- metadata.gz: 125699e2b446f80742d9be9f05cee1357eac3a39504123ef575195761645e742962c5a20284d7801dc37da352c098eb88e3b5b5e646b012e020566e6bfaf6811
7
- data.tar.gz: 5fd805fe31f0b053625633d0f7fd08d15777d83df674ea3873750ff19548a1a17f673024b235fccfe1a9ed2bfe2d7ead9417c165fbf09caf2d2e22356bfa6f0d
6
+ metadata.gz: 163eeaf89fbf1b9df79a9881a30698b799c236def3782ce9758e215e52714f99772382113a0c675efb54177dcd124939ae15b102213f7cc21e9b726323dc802a
7
+ data.tar.gz: 8e519c6c1c6af71e8d0ae970eb60dc36b462c7d1d83f8fd7d4e4aaea960ff4aacf984c8b78b168602b8531956ea11f676f76d63c118ea2bbcd343ac4a5c4b9f2
@@ -36,7 +36,7 @@ module AnyStyle
36
36
  end
37
37
 
38
38
  def parse_file(file)
39
- parse(Wapiti::Dataset.open(file))
39
+ parse(Wapiti::Dataset.open(file, **AnyStyle::Parser.defaults))
40
40
  end
41
41
 
42
42
  def parse(input)
@@ -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.3'.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.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil