Skip to content

Commit

Permalink
update xml2lossy json script
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Nov 10, 2023
1 parent 66feb0e commit 9badc15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/dataset
2 changes: 1 addition & 1 deletion scripts/xml2LossyJSON.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def process_file(finput, use_paragraphs=False):
raise Exception("RS without type is invalid. Stopping")

entity_class = item.attrs['type']
span['type'] = '<' + entity_class + '>'
span['type'] = entity_class

if len(item.attrs) > 0:
## multiple entities can point ot the same one, so "corresp" value can be duplicated
Expand Down

0 comments on commit 9badc15

Please sign in to comment.