singh-aditya commited on
Commit
c40a449
1 Parent(s): f8b93b6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md CHANGED
@@ -14,10 +14,34 @@ field:
14
  ---
15
 
16
  # MACCROBAT-biomedical-ner
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
 
19
 
20
  ## Uses
 
 
21
  ```Python
22
  import datasets
23
  from datasets import load_dataset
 
14
  ---
15
 
16
  # MACCROBAT-biomedical-ner
17
+ This data is the same data from [here](https://figshare.com/articles/dataset/MACCROBAT2018/9764942), the only difference is that it has been converted into the Huggingface dataset format. So it can be easily loaded and can be used wherever need.
18
+
19
+ To convert from the orginal format to huggingface dataset format, followed the following steps (**To know in more detail look at the `create_dataset.py` file**):
20
+ * Read corresponding `*.txt` and `*.ann` file.
21
+ * Used `pandas` to convert the `*.ann` file into dataframe.
22
+ * After converting into dataframe, did some processing and converted NER label information into:
23
+ ```JSON
24
+ {
25
+ "text": "ner-text",
26
+ "label": "ner-label",
27
+ "start": 10,
28
+ "end": 20
29
+ }
30
+ ```
31
+ * Standard labels are converted into `B-Tag` and `I-tag`, where `B`- stands for begning of the tag and `I` - stands for inside the tag.
32
+ * Finally the JSON is created and uploaded here.
33
+
34
+
35
+ ## Source Data
36
+ This ZIP-compressed file contains 200 source documents (in plain text, on sentence per line) and 200 annotation documents (in brat standoff format). Documents are named using PubMed document IDs, e.g. "15939911.txt" contains text from the document "A young man with palpitations and Ebstein's anomaly of the tricuspid valve" by Marcu and Donohue. Text is from PubMed Central full-text documents but has been edited to include only clinical case report details. All annotations were created manually.
37
+
38
+ "MACCROBAT2020" is the second release of this dataset, following "MACCROBAT2018". The consistency and format of annotations has been improved in the newest version.
39
 
40
 
41
 
42
  ## Uses
43
+ Use below snippet to load the data properly and it can be used to finetune medical based NER model with some additional processing.
44
+
45
  ```Python
46
  import datasets
47
  from datasets import load_dataset