zhangjf commited on
Commit
dadb2c4
β€’
1 Parent(s): c0f9e2f

start questions task

Browse files
.gitattributes CHANGED
@@ -34,4 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
  *.json filter=lfs diff=lfs merge=lfs -text
36
  dialogues_set/* filter=lfs diff=lfs merge=lfs -text
37
- dialogues_set/*.json filter=lfs diff=lfs merge=lfs -text
 
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
  *.json filter=lfs diff=lfs merge=lfs -text
36
  dialogues_set/* filter=lfs diff=lfs merge=lfs -text
37
+ questions/* filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -46,21 +46,16 @@ See https://github.com/openai/openai-python/blob/main/chatml.md for information
46
 
47
  def read_qs():
48
  qs, qas = [], []
49
- directory = "./dialogues_set"
50
  filenames = [
51
- 'dialogues_film.json',
52
- 'dialogues_jindong.json',
53
- 'dialogues_music.json',
54
- 'dialogues_natural.json',
55
- 'dialogues_taobao.json',
56
- 'dialogues_travel_kd.json'
57
  ]
58
  for filename in filenames:
59
  with open(f"{directory}/{filename}", "r", encoding="utf-8") as f:
60
  for idx,line in enumerate(f):
61
- idx2query = json.loads(line)
62
- query = idx2query[str(idx)]
63
- qs.append(query)
64
  print(f"read {len(qs)} queries from files")
65
 
66
  if os.path.exists(f"{directory}/qas.json"):
 
46
 
47
  def read_qs():
48
  qs, qas = [], []
49
+ directory = "./questions"
50
  filenames = [
51
+ 'math_question.json',
52
+ 'qa_question.txt',
53
+ 'summarization_question.txt',
 
 
 
54
  ]
55
  for filename in filenames:
56
  with open(f"{directory}/{filename}", "r", encoding="utf-8") as f:
57
  for idx,line in enumerate(f):
58
+ qs.append(line.replace("η”Ÿζˆζ‘˜θ¦","η”ŸζˆδΈ­ζ–‡ζ‘˜θ¦"))
 
 
59
  print(f"read {len(qs)} queries from files")
60
 
61
  if os.path.exists(f"{directory}/qas.json"):
questions/math_question.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4825026285cfa090fff557b62277a3fa2b7de054c68e82069f89ff69425e64e6
3
+ size 2694259
questions/qa_question.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f17826d3daa4c539c461f4df4fbdc360f565a71ab46feef449b5ee231f44ccba
3
+ size 937034
questions/summarization_question.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e468e0b18f2c906f998e12e31dfc6f4e6bee92526dbb892df0a68e517e1e0aa1
3
+ size 156823444