rain1024 commited on
Commit
2262ccf
·
1 Parent(s): 0d16286
Files changed (2) hide show
  1. UTS_Text.py +2 -1
  2. test_dataset.py +6 -0
UTS_Text.py CHANGED
@@ -77,6 +77,7 @@ class UTSText(datasets.GeneratorBasedBuilder):
77
  for line in f:
78
  print(line)
79
  item = {
80
- "text": line.strip()
81
  }
82
  yield item
 
 
77
  for line in f:
78
  print(line)
79
  item = {
80
+ "text": line
81
  }
82
  yield item
83
+
test_dataset.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+
3
+
4
+ dataset = load_dataset("undertheseanlp/UTS_Text", "small")
5
+
6
+ print(0)