futin commited on
Commit
aa08036
1 Parent(s): 76951c8

Update feed.py

Browse files
Files changed (1) hide show
  1. feed.py +15 -1
feed.py CHANGED
@@ -22,6 +22,8 @@ _TEXT = {
22
  "top_en": [" lecturer", " curriculum", " facility", " general"],
23
  "top_en_": ["lecturer", "curriculum", "facility", "general"],
24
  "sen_en_": ["negative", "neutral", "positive"],
 
 
25
  }
26
 
27
  class Config(datasets.BuilderConfig):
@@ -74,7 +76,17 @@ class Guess(datasets.GeneratorBasedBuilder):
74
  name="top_en_",
75
  data_url=_DATA_ENG,
76
  description="data",
77
- )
 
 
 
 
 
 
 
 
 
 
78
  ]
79
 
80
  def _info(self):
@@ -153,6 +165,8 @@ class Guess(datasets.GeneratorBasedBuilder):
153
  "top_en": f'Comment about ',
154
  "sen_en_": f'{_text} The sentiment of this sentence is ',
155
  "top_en_": f'Comment about ',
 
 
156
  }
157
 
158
  for _cl in TEXT_:
 
22
  "top_en": [" lecturer", " curriculum", " facility", " general"],
23
  "top_en_": ["lecturer", "curriculum", "facility", "general"],
24
  "sen_en_": ["negative", "neutral", "positive"],
25
+ "sen_vi_": ["thất vọng", "bình thường", "hài lòng"],
26
+ "top_vi_": ["giảng viên", "môn học", "phòng học", "tổng thể"],
27
  }
28
 
29
  class Config(datasets.BuilderConfig):
 
76
  name="top_en_",
77
  data_url=_DATA_ENG,
78
  description="data",
79
+ ),
80
+ Config(
81
+ name="top_vi_",
82
+ data_url=_DATA_URL,
83
+ description="data",
84
+ ),
85
+ Config(
86
+ name="sen_vi_",
87
+ data_url=_DATA_URL,
88
+ description="data",
89
+ ),
90
  ]
91
 
92
  def _info(self):
 
165
  "top_en": f'Comment about ',
166
  "sen_en_": f'{_text} The sentiment of this sentence is ',
167
  "top_en_": f'Comment about ',
168
+ "sen_vi_": f'{_text} Cảm thấy ',
169
+ "top_vi_": f'Nói về ',
170
  }
171
 
172
  for _cl in TEXT_: