Datasets:
shamikbose89
commited on
Commit
•
d42dcb5
1
Parent(s):
b4ce45c
Upload atypical_animacy.py
Browse files- 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 =
|
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, {
|