Datasets:

Modalities:
Text
Formats:
json
DOI:
john-dope commited on
Commit
407a9f5
·
verified ·
1 Parent(s): 518e65f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +61 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: pubmed
4
+ data_files:
5
+ - split: train
6
+ path: data/pubmed/part-*.jsonl.gz
7
+ - config_name: pmc
8
+ data_files:
9
+ - split: train
10
+ path: data/pmc/part-*.jsonl.gz
11
+ - config_name: uspto
12
+ data_files:
13
+ - split: train
14
+ path: data/uspto/part-*.jsonl.gz
15
+ - config_name: clinical_trial
16
+ data_files:
17
+ - split: train
18
+ path: data/clinical_trial/part-*.jsonl.gz
19
+ ---
20
+
21
+ # BEN Entities
22
+
23
+ Full BEN entity extraction results exported from MongoDB as Hub-native
24
+ `jsonl.gz` shards.
25
+
26
+ Each row contains only `document_id` and `entities`. Scores are filtered with
27
+ threshold `0.6` and rounded to two decimals.
28
+
29
+ ## Configs
30
+
31
+ - `pubmed` from Mongo collection `pubmed_ncbi`
32
+ - `pmc` from Mongo collection `pmc_xml`
33
+ - `uspto` from Mongo collection `patent_uspto`
34
+ - `clinical_trial` from Mongo collection `clinical_trial_gov`
35
+
36
+ ## Usage
37
+
38
+ ```python
39
+ from datasets import load_dataset
40
+
41
+ ds = load_dataset("john-dope/ben-entities", name="pubmed", split="train")
42
+ print(len(ds), ds[0]["document_id"])
43
+ ```
44
+ ```python
45
+ from datasets import load_dataset
46
+
47
+ ds = load_dataset("john-dope/ben-entities", name="pmc", split="train")
48
+ print(len(ds), ds[0]["document_id"])
49
+ ```
50
+ ```python
51
+ from datasets import load_dataset
52
+
53
+ ds = load_dataset("john-dope/ben-entities", name="uspto", split="train")
54
+ print(len(ds), ds[0]["document_id"])
55
+ ```
56
+ ```python
57
+ from datasets import load_dataset
58
+
59
+ ds = load_dataset("john-dope/ben-entities", name="clinical_trial", split="train")
60
+ print(len(ds), ds[0]["document_id"])
61
+ ```