anystyle-cli 1.4.4 → 1.4.5
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.
- checksums.yaml +4 -4
- data/lib/anystyle/cli/commands/check.rb +2 -2
- data/lib/anystyle/cli/commands/train.rb +1 -1
- data/lib/anystyle/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0742bee12fa2064b6dad45fdba1477110fa50cb2f264ddb1c3f5832eefc35510
|
4
|
+
data.tar.gz: 2b7a651a5d635f6bc4dcab363a6aea97dee9e698530da0f77c8c85b37c616aff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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')]
|
data/lib/anystyle/cli/version.rb
CHANGED