khaclinh commited on
Commit
b499279
1 Parent(s): 354003c

Update testdata.py

Browse files
Files changed (1) hide show
  1. testdata.py +1 -1
testdata.py CHANGED
@@ -113,7 +113,7 @@ class TestData(datasets.GeneratorBasedBuilder):
113
  gt_path = os.path.join(annotation_dir, gt_relative_path)
114
 
115
  annotation = defaultdict(list)
116
- with open(gt_file, "r", encoding="utf-8") as f:
117
  line = f.readline().strip()
118
  while line:
119
  assert re.match(r"^\d( [\d\.]+){4,5}$", line), "Incorrect line: %s" % line
 
113
  gt_path = os.path.join(annotation_dir, gt_relative_path)
114
 
115
  annotation = defaultdict(list)
116
+ with open(gt_path, "r", encoding="utf-8") as f:
117
  line = f.readline().strip()
118
  while line:
119
  assert re.match(r"^\d( [\d\.]+){4,5}$", line), "Incorrect line: %s" % line