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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f98b9ff3bc1734ecee79fde53518e86361c938b63801e73170c5aff3acc8dfa
4
- data.tar.gz: 5b0189b610fb42ab59bfb39cd8a42534d98235b8b44676fe272ec2653f5cd0a9
3
+ metadata.gz: 0231a4f9da16ad1b2cb562a360468b3450fec684e2bcf0ca500195499e8f7397
4
+ data.tar.gz: c2938b6d72fea58413a743ccad111fc8c95699d9b417e64941ca1681128a1706
5
5
  SHA512:
6
- metadata.gz: 53c3990bdcaa712cad414ba3c9bda13d9bd12a3c07e3c53d4479e674700d8ffea3c7515b99357feeb6052c8eac97f0836b2c8fd5f67d4ab475f00e5351ecd272
7
- data.tar.gz: 36c5c16e79cd346fdb061a6e2679ef85471043a6c5e795bc77beddf55866cbfbade25b6e8abf7fd990b088cb1af26574a899ac62e0ee2cafa738b222a0a19252
6
+ metadata.gz: 2ea402beb78be117e28ca906490526a28a8d1e1430181a89432953d26eb0b0a8ea70d0c582d438c5e6b668b3a48eb60db336ef8174fa4dd1a52e20c19f5b4d9b
7
+ data.tar.gz: 38b59c46e875ae61ab0794f2f9f474969b7e4e08e06078ca55ce4d1930d9538647e6b0152c1c48e8f0d45318ed2f71801dc99152d0799e06459937fb3d29978d
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 0.1.7 - 2023-05-29
4
+
5
+ ### Improvements
6
+
7
+ * `Datasets::NagoyaUniversityConversationCorpus`: Avoid using
8
+ endless range for old Ruby.
9
+
3
10
  ## 0.1.6 - 2023-05-24
4
11
 
5
12
  ### Improvements
@@ -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..].delete_prefix(':')
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..].split(':', 2)
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
@@ -1,3 +1,3 @@
1
1
  module Datasets
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.6
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-24 00:00:00.000000000 Z
12
+ date: 2023-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: csv