Skip to content

Commit

Permalink
test: change test data
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijianma committed Nov 17, 2023
1 parent c2370c9 commit 9619176
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions tests/format/data/structured/demo-dataset.jsonl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{"text": "Today is Sunday and it's a happy day!", "meta": {"src": "Arxiv"}}
{"text": "Do you need a cup of coffee?", "meta": {"src": "code"}}
{"text": "你好,请问你是谁", "meta": {"src": "customized"}}
{"text": "Sur la plateforme MT4, plusieurs manières d'accéder à ces fonctionnalités sont conçues simultanément.", "meta": {"src": "Oscar"}}
{"text": "欢迎来到阿里巴巴!", "meta": {"src": "customized"}}
{"text": "This paper proposed a novel method on LLM pretraining.", "meta": {"src": "customized"}}
{"text": "Today is Sunday and it's a happy day!", "meta": {"src": "Arxiv", "date": "2023-04-27", "version": "1.0"}}
{"text": "Do you need a cup of coffee?", "meta": {"src": "code", "author": "xxx"}}
{"text": "Today is Sunday and it's a happy day!", "meta": {"src": "Arxiv", "date": "2023-04-27", "version": "1.0"}}
{"text": "Do you need a cup of coffee?", "meta": {"src": "code", "author": "xxx"}}
{"text": "Today is Sunday and it's a happy day!", "meta": {"src": "Arxiv", "date": "2023-04-27", "version": "1.0"}}
{"text": "Do you need a cup of coffee?", "meta": {"src": "code", "author": "xxx"}}
3 changes: 1 addition & 2 deletions tests/format/test_unify_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ def test_hetero_meta(self):
'author': 'xxx'
}
}]
unified_sample_list = ds.to_list()
self.assertEqual(unified_sample_list, sample)

# test nested and missing field for the following cases:
# 1. first row, then column
unified_sample_first = ds[0]
Expand Down

0 comments on commit 9619176

Please sign in to comment.