Skip to content

Commit

Permalink
removed debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktks committed Sep 9, 2024
1 parent f35b4c1 commit dc12e1e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions orangecontrib/storynavigation/modules/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ def __process_english_potential_action(self, tag):
def __process_dutch_potential_action(self, tag):
# First check Spacy's dependency parser to classify as Verb and if so, past or present tense Verb?
if (tag[-1].pos_ == "VERB" and tag[-1].tag_.split('|')[0] == "WW"): # Spacy recognizes word as a Verb
print(tag[-1].pos_, tag[-1].tag_)
# Present tense == WW|pv|tgw or WW|pv|conj
# * Potentially include WW|inf category (see below)
# Past tense == WW|pv|verl
Expand Down Expand Up @@ -288,7 +287,6 @@ def __process_non_noun_tag(self, storyid, sentence, tag):
row = None
if self.__is_valid_token(tag):
tense_value = self.__process_potential_action(tag)
print(tense_value)
row = [storyid, sentence, tag[0], tag[-1].idx, tag[-1].idx + len(tag[0]), tense_value, tag[1], tag[2], tag[3], tag[4], False, False, False, '-']
return row

Expand Down

0 comments on commit dc12e1e

Please sign in to comment.