Datasets:
docs: fix dataset creation example
Browse files
README.md
CHANGED
|
@@ -21,8 +21,8 @@ from flair.datasets import NER_GERMAN_BIOFID
|
|
| 21 |
|
| 22 |
corpus = NER_GERMAN_BIOFID()
|
| 23 |
|
| 24 |
-
with open("./
|
| 25 |
-
for sentence in
|
| 26 |
current_example = {
|
| 27 |
"text": sentence.to_tokenized_string()
|
| 28 |
}
|
|
|
|
| 21 |
|
| 22 |
corpus = NER_GERMAN_BIOFID()
|
| 23 |
|
| 24 |
+
with open("./train.jsonl", "wt") as f_out:
|
| 25 |
+
for sentence in corpus.train:
|
| 26 |
current_example = {
|
| 27 |
"text": sentence.to_tokenized_string()
|
| 28 |
}
|