yanyc commited on
Commit
c45a49c
·
1 Parent(s): dffa9b9

Update SciGraph.py

Browse files
Files changed (1) hide show
  1. SciGraph.py +1 -2
SciGraph.py CHANGED
@@ -58,8 +58,7 @@ class SciGraph(datasets.GeneratorBasedBuilder):
58
  DEFAULT_CONFIG_NAME = "function"
59
 
60
  def _info(self):
61
- with open('class.json', 'r') as f:
62
- classes = list(json.load(f).keys())
63
  if self.config.name == "function": # This is the name of the configuration selected in BUILDER_CONFIGS above
64
  features = datasets.Features(
65
  {
 
58
  DEFAULT_CONFIG_NAME = "function"
59
 
60
  def _info(self):
61
+ classes = ['综述与进展', '论证与对比', '思考与探讨', '原理与计算', '技术与方法', '设计与应用']
 
62
  if self.config.name == "function": # This is the name of the configuration selected in BUILDER_CONFIGS above
63
  features = datasets.Features(
64
  {