kleinay commited on
Commit
92f0cf8
·
1 Parent(s): 9c560fd

strip '~!~' from verb prefix slot

Browse files
Files changed (1) hide show
  1. qanom.py +2 -2
qanom.py CHANGED
@@ -80,7 +80,7 @@ class Qanom(datasets.GeneratorBasedBuilder):
80
  are for canidate nominalization which are judged to be non-predicates ("is_verbal"==False) or predicates with no QAs.
81
  In these cases, the qa fields (question, answers, answer_ranges) would be empty lists. """
82
 
83
- VERSION = datasets.Version("1.0.0")
84
 
85
  BUILDER_CONFIGS = [
86
  datasets.BuilderConfig(
@@ -192,7 +192,7 @@ class Qanom(datasets.GeneratorBasedBuilder):
192
  else:
193
  verb_surface = row.verb_form
194
  if not pd.isna(row.verb_prefix):
195
- verb_surface = row.verb_prefix + " " + verb_surface
196
  question[3] = verb_surface
197
  answers = [] if pd.isna(row.answer) else row.answer.split("~!~")
198
  answer_ranges = [] if pd.isna(row.answer_range) else [Qanom.span_from_str(s) for s in row.answer_range.split("~!~")]
 
80
  are for canidate nominalization which are judged to be non-predicates ("is_verbal"==False) or predicates with no QAs.
81
  In these cases, the qa fields (question, answers, answer_ranges) would be empty lists. """
82
 
83
+ VERSION = datasets.Version("1.0.1")
84
 
85
  BUILDER_CONFIGS = [
86
  datasets.BuilderConfig(
 
192
  else:
193
  verb_surface = row.verb_form
194
  if not pd.isna(row.verb_prefix):
195
+ verb_surface = row.verb_prefix.replace("~!~", " ") + " " + verb_surface
196
  question[3] = verb_surface
197
  answers = [] if pd.isna(row.answer) else row.answer.split("~!~")
198
  answer_ranges = [] if pd.isna(row.answer_range) else [Qanom.span_from_str(s) for s in row.answer_range.split("~!~")]