Datasets:

Modalities:
Text
Formats:
json
Languages:
German
Libraries:
Datasets
pandas
License:
biofid / README.md
stefan-it's picture
docs: fix dataset creation example
cee29fe verified
---
license: cc-by-4.0
language:
- de
size_categories:
- 10K<n<100K
---
# BIOfid: Tokenized Sentences
This datasets hosts a sentence-tokenized version of the [BIOfid](https://github.com/texttechnologylab/BIOfid/tree/master/BIOfid-Dataset-NER) dataset.
## Creation
The following script can be used to reproduce the creation of the dataset:
```python
import json
from flair.datasets import NER_GERMAN_BIOFID
corpus = NER_GERMAN_BIOFID()
with open("./train.jsonl", "wt") as f_out:
for sentence in corpus.train:
current_example = {
"text": sentence.to_tokenized_string()
}
f_out.write(json.dumps(current_example) + "\n")
```
The extracted dataset has 12,668 sentences.