Datasets:

Modalities:
Text
Formats:
json
Languages:
German
Libraries:
Datasets
pandas
License:
stefan-it commited on
Commit
ce1e0df
·
verified ·
1 Parent(s): c5f7cac

docs: add initial version

Browse files
Files changed (1) hide show
  1. README.md +32 -3
README.md CHANGED
@@ -1,3 +1,32 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - de
5
+ size_categories:
6
+ - 10K<n<100K
7
+ ---
8
+
9
+ # UD German-HDT: Tokenized Sentences
10
+
11
+ This datasets hosts a sentence-tokenized version of the [Universal Dependencies German-HDT](https://github.com/UniversalDependencies/UD_German-HDT) dataset.
12
+
13
+ ## Creation
14
+
15
+ The following script can be used to reproduce the creation of the dataset:
16
+
17
+ ```python
18
+ import json
19
+
20
+ from flair.datasets import UD_GERMAN_HDT
21
+
22
+ corpus = UD_GERMAN_HDT()
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
+ }
29
+ f_out.write(json.dumps(current_example) + "\n")
30
+ ```
31
+
32
+ The extracted dataset has 153,035 sentences.