rain1024 commited on
Commit
9c87abe
1 Parent(s): d2a2525
Files changed (3) hide show
  1. README.md +3 -5
  2. UTS_Dictionary.py +0 -2
  3. statistics.py +5 -0
README.md CHANGED
@@ -61,11 +61,9 @@ Overall, the UTS_Dictionary is a valuable resource for anyone who wants to learn
61
 
62
  ### Data Splits
63
 
64
- | name | train | validation | test |
65
- |---------|--------:|-----------:|-------:|
66
- | small | 1600 | 200 | 200 |
67
- | base | 8000 | 1000 | 1000 |
68
- | large | 95000 | 2500 | 2500 |
69
 
70
 
71
  ## Dataset Creation
 
61
 
62
  ### Data Splits
63
 
64
+ | name | train |
65
+ |---------|---------:|
66
+ | data | 76000 |
 
 
67
 
68
 
69
  ## Dataset Creation
UTS_Dictionary.py CHANGED
@@ -50,11 +50,9 @@ class UTSText(datasets.GeneratorBasedBuilder):
50
  return splits
51
 
52
  def _generate_examples(self, filepath):
53
- print(filepath)
54
  guid = 0
55
  with open(filepath, encoding="utf-8") as f:
56
  for line in f:
57
- print(line)
58
  if line.strip() != "":
59
  item = {
60
  "text": line.strip()
 
50
  return splits
51
 
52
  def _generate_examples(self, filepath):
 
53
  guid = 0
54
  with open(filepath, encoding="utf-8") as f:
55
  for line in f:
 
56
  if line.strip() != "":
57
  item = {
58
  "text": line.strip()
statistics.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+
3
+ dataset = load_dataset("undertheseanlp/UTS_Dictionary")
4
+
5
+ print(len(dataset["train"]["text"]))