Hong commited on
Commit
91842bd
1 Parent(s): 74ba684

Upload load_data.py

Browse files
Files changed (1) hide show
  1. load_data.py +11 -0
load_data.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import pandas as pd
3
+
4
+ with open("category_map.json", "r") as f:
5
+ category = json.load(f)
6
+
7
+ candidate_labels = [terms for lists in list(category.values()) for terms in lists]
8
+ source = category["SOURCE"]
9
+
10
+ with open("flitto_lang.json", "r") as f:
11
+ langs = json.load(f)