torchtext 0.1.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +1 -1
- data/README.md +8 -8
- data/lib/torchtext/data/functional.rb +11 -0
- data/lib/torchtext/version.rb +1 -1
- data/lib/torchtext.rb +10 -9
- metadata +9 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05a1c92da0b41a4dce5dc35a79b58e8d6f032e984760021cf0478a5d0a26dab4
|
4
|
+
data.tar.gz: c6e35f592c05dfd2903f2b1448616f600d0d42d83dfe2da0dc0ad8ae33fcd970
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00a82621433400dd6244ec3fd6109b61459cec58e001e28ab5433f37a2ca77d2d8a894a56f13f9dfd35c415ef7a59615f5c16490133e684b25687d5bbdbd150a
|
7
|
+
data.tar.gz: 590dcdd56d08232009e584099b1d5ed6d3281249e3a4490e505913dcaeaf6f9c59f5ea85472b0bc747c3b8cb605865adce77f26a465e09724f5ea42d7d40e30b
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
# TorchText
|
1
|
+
# TorchText Ruby
|
2
2
|
|
3
3
|
:fire: Data loaders and abstractions for text and NLP - for Ruby
|
4
4
|
|
5
|
-
[![Build Status](https://github.com/ankane/torchtext/workflows/build/badge.svg
|
5
|
+
[![Build Status](https://github.com/ankane/torchtext-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/torchtext-ruby/actions)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
9
|
Add this line to your application’s Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem
|
12
|
+
gem "torchtext"
|
13
13
|
```
|
14
14
|
|
15
15
|
## Getting Started
|
@@ -74,22 +74,22 @@ If you’re a dataset owner and wish to update any details or remove it from thi
|
|
74
74
|
|
75
75
|
## History
|
76
76
|
|
77
|
-
View the [changelog](https://github.com/ankane/torchtext/blob/master/CHANGELOG.md)
|
77
|
+
View the [changelog](https://github.com/ankane/torchtext-ruby/blob/master/CHANGELOG.md)
|
78
78
|
|
79
79
|
## Contributing
|
80
80
|
|
81
81
|
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
82
82
|
|
83
|
-
- [Report bugs](https://github.com/ankane/torchtext/issues)
|
84
|
-
- Fix bugs and [submit pull requests](https://github.com/ankane/torchtext/pulls)
|
83
|
+
- [Report bugs](https://github.com/ankane/torchtext-ruby/issues)
|
84
|
+
- Fix bugs and [submit pull requests](https://github.com/ankane/torchtext-ruby/pulls)
|
85
85
|
- Write, clarify, or fix documentation
|
86
86
|
- Suggest or add new features
|
87
87
|
|
88
88
|
To get started with development:
|
89
89
|
|
90
90
|
```sh
|
91
|
-
git clone https://github.com/ankane/torchtext.git
|
92
|
-
cd torchtext
|
91
|
+
git clone https://github.com/ankane/torchtext-ruby.git
|
92
|
+
cd torchtext-ruby
|
93
93
|
bundle install
|
94
94
|
bundle exec rake test
|
95
95
|
```
|
data/lib/torchtext/version.rb
CHANGED
data/lib/torchtext.rb
CHANGED
@@ -8,15 +8,16 @@ require "rubygems/package"
|
|
8
8
|
require "set"
|
9
9
|
|
10
10
|
# modules
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
11
|
+
require_relative "torchtext/data/functional"
|
12
|
+
require_relative "torchtext/data/metrics"
|
13
|
+
require_relative "torchtext/data/utils"
|
14
|
+
require_relative "torchtext/datasets/text_classification"
|
15
|
+
require_relative "torchtext/datasets/text_classification_dataset"
|
16
|
+
require_relative "torchtext/nn/in_proj_container"
|
17
|
+
require_relative "torchtext/nn/multihead_attention_container"
|
18
|
+
require_relative "torchtext/nn/scaled_dot_product"
|
19
|
+
require_relative "torchtext/vocab"
|
20
|
+
require_relative "torchtext/version"
|
20
21
|
|
21
22
|
module TorchText
|
22
23
|
class Error < StandardError; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torchtext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: torch-rb
|
@@ -16,58 +16,16 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.13'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5'
|
26
|
+
version: '0.13'
|
69
27
|
description:
|
70
|
-
email: andrew@
|
28
|
+
email: andrew@ankane.org
|
71
29
|
executables: []
|
72
30
|
extensions: []
|
73
31
|
extra_rdoc_files: []
|
@@ -76,6 +34,7 @@ files:
|
|
76
34
|
- LICENSE.txt
|
77
35
|
- README.md
|
78
36
|
- lib/torchtext.rb
|
37
|
+
- lib/torchtext/data/functional.rb
|
79
38
|
- lib/torchtext/data/metrics.rb
|
80
39
|
- lib/torchtext/data/utils.rb
|
81
40
|
- lib/torchtext/datasets/text_classification.rb
|
@@ -85,7 +44,7 @@ files:
|
|
85
44
|
- lib/torchtext/nn/scaled_dot_product.rb
|
86
45
|
- lib/torchtext/version.rb
|
87
46
|
- lib/torchtext/vocab.rb
|
88
|
-
homepage: https://github.com/ankane/torchtext
|
47
|
+
homepage: https://github.com/ankane/torchtext-ruby
|
89
48
|
licenses:
|
90
49
|
- BSD-3-Clause
|
91
50
|
metadata: {}
|
@@ -97,14 +56,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
56
|
requirements:
|
98
57
|
- - ">="
|
99
58
|
- !ruby/object:Gem::Version
|
100
|
-
version: '
|
59
|
+
version: '3.1'
|
101
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
61
|
requirements:
|
103
62
|
- - ">="
|
104
63
|
- !ruby/object:Gem::Version
|
105
64
|
version: '0'
|
106
65
|
requirements: []
|
107
|
-
rubygems_version: 3.
|
66
|
+
rubygems_version: 3.5.11
|
108
67
|
signing_key:
|
109
68
|
specification_version: 4
|
110
69
|
summary: Data loaders and abstractions for text and NLP
|