Commit
·
9e8dde8
1
Parent(s):
4627fea
Update README.txt
Browse files- README.txt +6 -4
README.txt
CHANGED
|
@@ -13,14 +13,16 @@ def remove_long_answers(example): #MAP
|
|
| 13 |
answers_set.add((text, start))
|
| 14 |
example['answers'] = new_answers
|
| 15 |
return example
|
| 16 |
-
|
| 17 |
-
|
|
|
|
| 18 |
example['context'] = ' '.join(example['context'].split())
|
| 19 |
example['question'] = ' '.join(example['question'].split())
|
| 20 |
example['answers']['text'] = [' '.join(answer.split()) for answer in example['answers']['text']]
|
| 21 |
return example
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 24 |
if example['answers']['text'] == []:
|
| 25 |
return False
|
| 26 |
|
|
|
|
| 13 |
answers_set.add((text, start))
|
| 14 |
example['answers'] = new_answers
|
| 15 |
return example
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def filter_whitespace(example): #MAP
|
| 19 |
example['context'] = ' '.join(example['context'].split())
|
| 20 |
example['question'] = ' '.join(example['question'].split())
|
| 21 |
example['answers']['text'] = [' '.join(answer.split()) for answer in example['answers']['text']]
|
| 22 |
return example
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def checks(example): #FILTER
|
| 26 |
if example['answers']['text'] == []:
|
| 27 |
return False
|
| 28 |
|