KennethEnevoldsen commited on
Commit
02d1b4a
·
1 Parent(s): 47e8e78

docs: Added readme

Browse files
Files changed (1) hide show
  1. README.md +40 -2
README.md CHANGED
@@ -50,6 +50,44 @@ dataset_info:
50
  download_size: 1627548
51
  dataset_size: 9894180
52
  ---
53
- # Dataset Card for "dane_plus"
54
 
55
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  download_size: 1627548
51
  dataset_size: 9894180
52
  ---
 
53
 
54
+ # DaNE+
55
+
56
+ This is the annotated version of DaNE, where the annotations are added by the model predictions using model trained of Danish dataset DANSK and then all the discrepancies are manually reviewed and corrected by Kenneth C. Enevoldsen. If there was an uncertainty the annotation was left as it was.
57
+
58
+
59
+ ## Process of annotation
60
+
61
+ 1) Install the requirements:
62
+ ```
63
+ --extra-index-url pip install prodigy -f https://{DOWNLOAD KEY}@download.prodi.gy
64
+ prodigy>=1.11.0,<2.0.0
65
+ ```
66
+
67
+ 2) Create outline dataset
68
+ ```bash
69
+ python annotate.py
70
+ ```
71
+
72
+ 3) Review and correction annotation using prodigy:
73
+ Add datasets to prodigy
74
+ ```bash
75
+ prodigy db-in dane reference.jsonl
76
+ prodigy db-in dane_plus_mdl_pred predictions.jsonl
77
+ ```
78
+
79
+ Run review using prodigy:
80
+ ```bash
81
+ prodigy review daneplus dane_plus_mdl_pred,dane --view-id ner_manual --l NORP,CARDINAL,PRODUCT,ORGANIZATION,PERSON,WORK_OF_ART,EVENT,LAW,QUANTITY,DATE,TIME,ORDINAL,LOCATION,GPE,MONEY,PERCENT,FACILITY
82
+ ```
83
+
84
+ Export the dataset:
85
+ ```bash
86
+ prodigy data-to-spacy daneplus --ner daneplus --lang da -es 0
87
+ ```
88
+
89
+ 4) Redo the original split:
90
+
91
+ ```bash
92
+ python split.py
93
+ ```