Skip to content

Commit

Permalink
DISABLE PLACEHOLDER LEXCATS (closes #15)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschneid committed Nov 24, 2019
1 parent 2f2813c commit 4814f91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions UDlextag2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ def _postproc_sent(sent):

if lc_tbd>0:
print('Tokens with lexcat TBD:', lc_tbd, file=sys.stderr)
assert False,'PLACEHOLDER LEXCATS ARE DISALLOWED'

if __name__=='__main__':
argparser = ArgumentParser(description=desc)
Expand Down
1 change: 1 addition & 0 deletions conllulex2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def _postproc_sent(sent):

if lc_tbd>0:
print('Tokens with lexcat TBD:', lc_tbd, file=sys.stderr)
assert False,'PLACEHOLDER LEXCATS ARE DISALLOWED'

def print_sent_json(sent):
list_fields = ("toks", "etoks")
Expand Down

0 comments on commit 4814f91

Please sign in to comment.