Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LorrinWWW committed Oct 29, 2020
1 parent b3c0d97 commit d822fbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion datasets/ace2005/ace2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def parseStanford(stanfordfn):

def Ace2json(entity_dir, rel_dir, token_dict_offset1, token_dict_offset2, txtfn, docs, nercount, relcount, sentcount):
fn = txtfn.split('/')[-1].replace('.split.txt','')
print fn
print(fn)
fid = open(txtfn)
text = fid.read()
text = text.rstrip()
Expand Down
4 changes: 4 additions & 0 deletions datasets/ace2005/unify.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@


for dataset_type in ['train', 'dev', 'test']:

dataset = eval(dataset_type)

exec(f'{dataset_type}_fine = []')
dataset_fine = eval(f'{dataset_type}_fine')

Expand Down Expand Up @@ -49,6 +52,7 @@

bias += len(tokens)


flag = 'ACE05'
for dataset_type in ['train', 'dev', 'test']:
dataset_fine = eval(f'{dataset_type}_fine')
Expand Down

0 comments on commit d822fbb

Please sign in to comment.