wapiti 1.0.7 → 2.1.0
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/.github/workflows/ci.yml +46 -0
- data/HISTORY.md +4 -0
- data/LICENSE +1 -1
- data/README.md +3 -4
- data/ext/wapiti/tools.c +0 -4
- data/lib/wapiti/dataset.rb +0 -6
- data/lib/wapiti/version.rb +1 -1
- metadata +21 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13cbaf03c29f1a8c1aae4e4f766dab2eb906da59ee821eddb5a0d3a4c2e2587d
|
4
|
+
data.tar.gz: 8ea99657736efa5374c2f33225247f2dd307fa6431c119b4f83b6e4a17fe293b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ebb1b481e51f6dfbdfc67a04e2f10a117add1919474ecfc0bf424420c1a227bf9b180fe471a38c4e1a4365ba38a829b0dc3d6a65002d622a98ba1132f7cb9a0
|
7
|
+
data.tar.gz: aa0b4c8a81eee4dfe2f1240f68de09f57b4f4776310a51f96d68ba18b02a719cd14f80499800a6470f178660b11cc428f51ecd36236c32c13e633462cbbfbdcf
|
@@ -0,0 +1,46 @@
|
|
1
|
+
name: CI
|
2
|
+
on:
|
3
|
+
push:
|
4
|
+
branches: [ main ]
|
5
|
+
pull_request:
|
6
|
+
branches: [ main ]
|
7
|
+
concurrency:
|
8
|
+
group: ci-${{ github.ref }}
|
9
|
+
cancel-in-progress: true
|
10
|
+
jobs:
|
11
|
+
ci:
|
12
|
+
name: ${{ matrix.ruby-version }} ${{ matrix.friendlyName }}-${{ matrix.arch }}
|
13
|
+
runs-on: ${{ matrix.os }}
|
14
|
+
|
15
|
+
strategy:
|
16
|
+
matrix:
|
17
|
+
ruby-version:
|
18
|
+
- "2.6"
|
19
|
+
- "2.7"
|
20
|
+
- "3.0"
|
21
|
+
- "3.1"
|
22
|
+
- "3.2"
|
23
|
+
os:
|
24
|
+
- ubuntu-latest
|
25
|
+
- macos-latest
|
26
|
+
- windows-latest
|
27
|
+
arch:
|
28
|
+
- x64
|
29
|
+
include:
|
30
|
+
- os: ubuntu-latest
|
31
|
+
friendlyName: Linux
|
32
|
+
- os: macos-latest
|
33
|
+
friendlyName: macOS
|
34
|
+
- os: windows-latest
|
35
|
+
friendlyName: Windows
|
36
|
+
|
37
|
+
steps:
|
38
|
+
- name: Checkout repository
|
39
|
+
uses: actions/checkout@v3
|
40
|
+
- name: Setup Ruby and install bundle
|
41
|
+
uses: ruby/setup-ruby@v1
|
42
|
+
with:
|
43
|
+
ruby-version: ${{ matrix.ruby-version }}
|
44
|
+
bundler-cache: true
|
45
|
+
- name: Compile and run test
|
46
|
+
run: bundle exec rake
|
data/HISTORY.md
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
Wapiti-Ruby
|
2
2
|
===========
|
3
|
+
[](https://github.com/inukshuk/wapiti-ruby/actions/workflows/ci.yml)
|
4
|
+
|
3
5
|
The Wapiti-Ruby gem provides a wicked fast linear-chain CRF
|
4
6
|
([Conditional Random Fields](http://en.wikipedia.org/wiki/Conditional_random_field))
|
5
7
|
API for sequence segmentation and labelling; it is based on the
|
6
8
|
codebase of [wapiti](http://wapiti.limsi.fr/).
|
7
9
|
|
8
|
-
[](https://travis-ci.org/inukshuk/wapiti-ruby)
|
9
|
-
[](https://ci.appveyor.com/project/inukshuk/wapiti-ruby/branch/master)
|
10
|
-
[](https://coveralls.io/github/inukshuk/wapiti-ruby?branch=master)
|
11
10
|
|
12
11
|
Requirements
|
13
12
|
------------
|
@@ -142,7 +141,7 @@ example, fix the bug and submit a pull request.
|
|
142
141
|
|
143
142
|
License
|
144
143
|
-------
|
145
|
-
Copyright 2011-
|
144
|
+
Copyright 2011-2023 Sylvester Keil. All rights reserved.
|
146
145
|
|
147
146
|
Copyright 2009-2013 CNRS. All rights reserved.
|
148
147
|
|
data/ext/wapiti/tools.c
CHANGED
@@ -44,10 +44,6 @@ FILE *ufopen(VALUE path, const char *mode) {
|
|
44
44
|
FILE *file = (FILE*)0;
|
45
45
|
Check_Type(path, T_STRING);
|
46
46
|
|
47
|
-
if (rb_obj_tainted(path)) {
|
48
|
-
fatal("failed to open file from tainted string '%s'", StringValueCStr(path));
|
49
|
-
}
|
50
|
-
|
51
47
|
if (!(file = fopen(StringValueCStr(path), mode))) {
|
52
48
|
pfatal("failed to open file '%s'", StringValueCStr(path));
|
53
49
|
}
|
data/lib/wapiti/dataset.rb
CHANGED
@@ -39,9 +39,6 @@ module Wapiti
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def open(path, format: File.extname(path), **opts)
|
42
|
-
raise ArgumentError,
|
43
|
-
"cannot open dataset from tainted path: '#{path}'" if path.tainted?
|
44
|
-
|
45
42
|
input = File.read(path, encoding: 'utf-8')
|
46
43
|
case format.downcase
|
47
44
|
when '.xml', 'xml'
|
@@ -141,9 +138,6 @@ module Wapiti
|
|
141
138
|
end
|
142
139
|
|
143
140
|
def save(path, format: File.extname(path), **opts)
|
144
|
-
raise ArgumentError,
|
145
|
-
"cannot write dataset to tainted path: '#{path}'" if path.tainted?
|
146
|
-
|
147
141
|
output = case format.downcase
|
148
142
|
when '.txt', 'txt'
|
149
143
|
to_s(**opts)
|
data/lib/wapiti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wapiti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rexml
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
27
41
|
description: This gem provides a Ruby API for Conditional Random Fields (CRF).
|
28
42
|
email:
|
29
43
|
- sylvester@keil.or.at
|
@@ -35,6 +49,7 @@ extra_rdoc_files:
|
|
35
49
|
- HISTORY.md
|
36
50
|
- LICENSE
|
37
51
|
files:
|
52
|
+
- ".github/workflows/ci.yml"
|
38
53
|
- HISTORY.md
|
39
54
|
- LICENSE
|
40
55
|
- README.md
|
@@ -85,7 +100,7 @@ homepage: https://github.com/inukshuk/wapiti-ruby
|
|
85
100
|
licenses:
|
86
101
|
- BSD-2-Clause
|
87
102
|
metadata: {}
|
88
|
-
post_install_message:
|
103
|
+
post_install_message:
|
89
104
|
rdoc_options:
|
90
105
|
- "--line-numbers"
|
91
106
|
- "--inline-source"
|
@@ -107,8 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
122
|
- !ruby/object:Gem::Version
|
108
123
|
version: '0'
|
109
124
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
111
|
-
signing_key:
|
125
|
+
rubygems_version: 3.4.2
|
126
|
+
signing_key:
|
112
127
|
specification_version: 4
|
113
128
|
summary: Wicked fast Conditional Random Fields for Ruby.
|
114
129
|
test_files: []
|