red-datasets 0.1.6 → 0.1.7
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/doc/text/news.md +7 -0
- data/lib/datasets/nagoya-university-conversation-corpus.rb +4 -4
- data/lib/datasets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0231a4f9da16ad1b2cb562a360468b3450fec684e2bcf0ca500195499e8f7397
|
|
4
|
+
data.tar.gz: c2938b6d72fea58413a743ccad111fc8c95699d9b417e64941ca1681128a1706
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ea402beb78be117e28ca906490526a28a8d1e1430181a89432953d26eb0b0a8ea70d0c582d438c5e6b668b3a48eb60db336ef8174fa4dd1a52e20c19f5b4d9b
|
|
7
|
+
data.tar.gz: 38b59c46e875ae61ab0794f2f9f474969b7e4e08e06078ca55ce4d1930d9538647e6b0152c1c48e8f0d45318ed2f71801dc99152d0799e06459937fb3d29978d
|
data/doc/text/news.md
CHANGED
|
@@ -69,17 +69,17 @@ module Datasets
|
|
|
69
69
|
input.each_line(chomp: true) do |line|
|
|
70
70
|
line.force_encoding('utf-8')
|
|
71
71
|
if line.start_with?('@データ')
|
|
72
|
-
data.name = line[4
|
|
72
|
+
data.name = line[4..-1]
|
|
73
73
|
elsif line.start_with?('@収集年月日')
|
|
74
74
|
# mixed cases with and without':'
|
|
75
|
-
data.date = line[6
|
|
75
|
+
data.date = line[6..-1].delete_prefix(':')
|
|
76
76
|
elsif line.start_with?('@場所')
|
|
77
|
-
data.place = line[4
|
|
77
|
+
data.place = line[4..-1]
|
|
78
78
|
elsif line.start_with?('@参加者の関係')
|
|
79
79
|
data.relationships = line.split(':', 2)[1]
|
|
80
80
|
elsif line.start_with?('@参加者')
|
|
81
81
|
participant = Participant.new
|
|
82
|
-
participant.id, profiles = line[4
|
|
82
|
+
participant.id, profiles = line[4..-1].split(':', 2)
|
|
83
83
|
participant.attribute, participant.birthplace, participant.residence = profiles.split('、', 3)
|
|
84
84
|
|
|
85
85
|
participants << participant
|
data/lib/datasets/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: red-datasets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tomisuker
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2023-05-
|
|
12
|
+
date: 2023-05-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: csv
|