Skip to content

Commit

Permalink
Nodes with publication-91 are no longer considered events.
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-zeman committed Mar 18, 2024
1 parent 5a66c0b commit 1b14b96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions data/czech/mf920922-133_estonsko-DZ.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ Sentence Gloss (en): Estonians elected the parliament.
:wiki "Q217799"
:refer-number singular)
:aspect activity
:modal-strength full-affirmative)
:aspect directed-achievement
:modal-strength full-affirmative)
:modal-strength full-affirmative))

# alignment:
s1p3: 0-0
Expand Down
3 changes: 3 additions & 0 deletions tools/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,9 @@ def detect_events(sentence, node_dict, args):
# If it is a discourse connective, stop here.
if re.match(discourse_concept_re, node['concept']):
continue
# If it is 'publication-91' (document metadata), stop here.
if node['concept'] == 'publication-91':
continue
if not 'event_reason' in node and re.match(r"^.+-91$", node['concept']):
node['event_reason'] = "its concept is %s on line %d" % (node['concept'], node['line0'])
relations = node['relations']
Expand Down

0 comments on commit 1b14b96

Please sign in to comment.