Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Languages:
English
Size:
< 1K
ArXiv:
Libraries:
Datasets
pandas
License:
shamikbose89 commited on
Commit
d42dcb5
1 Parent(s): b4ce45c

Upload atypical_animacy.py

Browse files
Files changed (1) hide show
  1. atypical_animacy.py +1 -1
atypical_animacy.py CHANGED
@@ -108,7 +108,7 @@ class AtypicalAnimacy(datasets.GeneratorBasedBuilder):
108
  target = row.TargetExpression
109
  animacy = float(row.animacy)
110
  humanness = float(row.humanness)
111
- target_start = sentence.find(target)
112
  offsets = [target_start, target_start + len(target)]
113
  id = row.SentenceId
114
  yield id, {
 
108
  target = row.TargetExpression
109
  animacy = float(row.animacy)
110
  humanness = float(row.humanness)
111
+ target_start = row.Sentence.find("***")
112
  offsets = [target_start, target_start + len(target)]
113
  id = row.SentenceId
114
  yield id, {