Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xinke-wang committed Nov 15, 2022
1 parent e28fc32 commit fa9e56d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/en/dataset_zoo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import os
import os.path as osp
import re

import yaml

Expand All @@ -18,12 +19,14 @@
meta = yaml.safe_load(
open(osp.join(dataset_zoo_path, dataset, 'metafile.yml')))
dataset_name = meta['Name']
detail_link = re.sub('[^A-Za-z0-9- ]', '',
dataset_name).replace(' ', '-').lower()
paper = meta['Paper']
data = meta['Data']

table += '| [{}](#{}) | {} | {} | {} | {} |\n'.format(
dataset,
dataset_name.lower().replace(' ', '-'),
detail_link,
'✓' if 'textdet' in data['Tasks'] else '',
'✓' if 'textrecog' in data['Tasks'] else '',
'✓' if 'textspotting' in data['Tasks'] else '',
Expand Down
5 changes: 4 additions & 1 deletion docs/zh_cn/dataset_zoo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import os
import os.path as osp
import re

import yaml

Expand All @@ -18,12 +19,14 @@
meta = yaml.safe_load(
open(osp.join(dataset_zoo_path, dataset, 'metafile.yml')))
dataset_name = meta['Name']
detail_link = re.sub('[^A-Za-z0-9- ]', '',
dataset_name).replace(' ', '-').lower()
paper = meta['Paper']
data = meta['Data']

table += '| [{}](#{}) | {} | {} | {} | {} |\n'.format(
dataset,
dataset_name.lower().replace(' ', '-'),
detail_link,
'✓' if 'textdet' in data['Tasks'] else '',
'✓' if 'textrecog' in data['Tasks'] else '',
'✓' if 'textspotting' in data['Tasks'] else '',
Expand Down

0 comments on commit fa9e56d

Please sign in to comment.