guishe commited on
Commit
23bbb71
1 Parent(s): 7b2dc5f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +105 -27
README.md CHANGED
@@ -1,8 +1,10 @@
1
  ---
2
- license: mit
3
  base_model: numind/NuNER-v1.0
4
  tags:
5
- - generated_from_trainer
 
 
6
  metrics:
7
  - precision
8
  - recall
@@ -10,33 +12,95 @@ metrics:
10
  - accuracy
11
  model-index:
12
  - name: nuner-v1_orgs
13
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
 
16
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
- should probably proofread and complete it, then remove this comment. -->
18
-
19
- # nuner-v1_orgs
20
-
21
- This model is a fine-tuned version of [numind/NuNER-v1.0](https://huggingface.co/numind/NuNER-v1.0) on an unknown dataset.
22
- It achieves the following results on the evaluation set:
23
- - Loss: 0.0631
24
- - Precision: 0.7912
25
- - Recall: 0.8045
26
- - F1: 0.7978
27
- - Accuracy: 0.9790
28
-
29
- ## Model description
30
-
31
- More information needed
32
-
33
- ## Intended uses & limitations
34
-
35
- More information needed
36
-
37
- ## Training and evaluation data
38
-
39
- More information needed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  ## Training procedure
42
 
@@ -70,3 +134,17 @@ The following hyperparameters were used during training:
70
  - Pytorch 2.0.0+cu117
71
  - Datasets 2.18.0
72
  - Tokenizers 0.15.2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-sa-4.0
3
  base_model: numind/NuNER-v1.0
4
  tags:
5
+ - token-classification
6
+ - ner
7
+ - named-entity-recognition
8
  metrics:
9
  - precision
10
  - recall
 
12
  - accuracy
13
  model-index:
14
  - name: nuner-v1_orgs
15
+ results:
16
+ - task:
17
+ type: token-classification
18
+ name: Named Entity Recognition
19
+ dataset:
20
+ name: FewNERD, CoNLL2003, and OntoNotes v5
21
+ type: tomaarsen/ner-orgs
22
+ split: test
23
+ metrics:
24
+ - type: f1
25
+ value: 0.7798010380622837
26
+ name: F1
27
+ - type: precision
28
+ value: 0.7605247616637139
29
+ name: Precision
30
+ - type: recall
31
+ value: 0.800079879293512
32
+ name: Recall
33
+ - type: accuracy
34
+ value: 0.9769673789973878
35
+ name: Accuracy
36
+ datasets:
37
+ - tomaarsen/ner-orgs
38
+ language:
39
+ - en
40
+ library_name: transformers
41
+ pipeline_tag: token-classification
42
+ widget:
43
+ - text: Concern and scepticism surround Niger uranium mining waste storage plans. Towering mounds dot the desert landscape in northern Niger's Arlit region, but they are heaps of partially radioactive waste left from four decades of operations at one of the world's biggest uranium mines. An ambitious 10-year scheme costing $160 million is underway to secure the waste and avoid risks to health and the environment, but many local people are worried or sceptical. France's nuclear giant Areva, now called Orano, worked the area under a subsidiary, the Akouta Mining Company (Cominak). Cominak closed the site in 2021 after extracting 75,000 tonnes of uranium, much of which went to fuelling the scores of nuclear reactors that provide the backbone of France's electricity supply. Cominak's director general Mahaman Sani Abdoulaye showcased the rehabilitation project to the first French journalists to visit the site since 2010, when seven Areva employees were kidnapped by jihadists.
44
+ - text: SE Michigan counties allege insulin gouging; Localities file lawsuit against pharmaceutical makers. Four metro Detroit counties filed federal lawsuits Wednesday against some of the nation's biggest pharmaceutical manufacturers and pharmacy benefit managers alleging illegal price fixing for insulin products. Macomb, Monroe, Wayne and Washtenaw counties filed the lawsuits in U.S. District Court in New Jersey against more than a dozen companies, including Lilly, Sanofi Aventis, Novo Nordisk, Express Scripts, Optum Rx and CVS Caremark, per their attorneys. "These are the first such lawsuits that have been filed in the state of Michigan and probably more to come," said attorney Melvin Butch Hollowell of the Miller Law Firm. He described the allegations during a news conference, saying that nationally "the pharmacies and manufacturers get together. They control about 90% of the market each, of the insulin market. They talk to each other secretly. And they jack up the prices through anticompetitive means. And what we've seen is over the past 20 years, when we talk about jacking up the prices, they jack them up 1,500% in the last 20 years. 1,500%."
45
+ - text: Foreign governments may be spying on your smartphone notifications, senator says. Washington (CNN) — Foreign governments have reportedly attempted to spy on iPhone and Android users through the mobile app notifications they receive on their smartphones - and the US government has forced Apple and Google to keep quiet about it, according to a top US senator. Through legal demands sent to the tech giants, governments have allegedly tried to force Apple and Google to turn over sensitive information that could include the contents of a notification - such as previews of a text message displayed on a lock screen, or an update about app activity, Oregon Democratic Sen. Ron Wyden said in a new report. Wyden's report reflects the latest example of long-running tensions between tech companies and governments over law enforcement demands, which have stretched on for more than a decade. Governments around the world have particularly battled with tech companies over encryption, which provides critical protections to users and businesses while in some cases preventing law enforcement from pursuing investigations into messages sent over the internet.
46
+ - text: Tech giants ‘could severely disable UK spooks from stopping online harms’. Silicon Valley tech giants’ actions could “severely disable” UK spooks from preventing harm caused by online paedophiles and fraudsters, Suella Braverman has suggested. The Conservative former home secretary named Facebook owner Meta , and Apple, and their use of technologies such as end-to-end encryption as a threat to attempts to tackle digital crimes. She claimed the choice to back these technologies without “safeguards” could “enable and indeed facilitate some of the worst atrocities that our brave men and women in law enforcement agencies deal with every day”, as MPs began considering changes to investigatory powers laws. The Investigatory Powers (Amendment) Bill includes measures to make it easier for agencies to examine and retain bulk datasets, such as publicly available online telephone records, and would allow intelligence agencies to use internet connection records to aid detection of their targets. We know that the terrorists, the serious organised criminals, and fraudsters, and the online paedophiles, all take advantage of the dark web and encrypted spaces
47
+ - text: Camargo Corrêa asks Toffoli to suspend the fine agreed with Lava Jato. The Camargo Corrêa group has asked Justice Dias Toffoli to suspend the R$1.4 billion fine it agreed to pay in its leniency agreement under Operation Car Wash. The company asked for an extension of the minister's decisions that benefited J&F and Odebrecht. Like the other companies, it claimed that it suffered undue pressure from members of the Federal Public Prosecutor's Office (MPF) to close the deal. Much of the request is based on messages exchanged between prosecutors from the Curitiba task force and former judge Sergio Moro - Camargo Corrêa requested full access to the material, seized in Operation Spoofing, which arrested the hackers who broke into cell phones. The dialogues, according to the group's defense, indicate that the executives did not freely agree to the deal, since they were the targets of lawsuits and pre-trial detentions.
48
  ---
49
 
50
+ # numind/NuNER-v1.0 fine-tuned on FewNERD-fine-supervised
51
+
52
+ This is a [NuNER](https://arxiv.org/abs/2402.15343) model fine-tuned on the [NER-ORGS](https://huggingface.co/datasets/tomaarsen/ner-orgs) dataset that can be used for Named Entity Recognition. NuNER model uses [RoBERTa-base](https://huggingface.co/FacebookAI/roberta-base) as the backbone encoder and it was trained on the [NuNER dataset](https://huggingface.co/datasets/numind/NuNER), which is a large and diverse dataset synthetically labeled by gpt-3.5-turbo-0301 of 1M sentences. This further pre-training phase allowed the generation of high quality token embeddings, a good starting point for fine-tuning on more specialized datasets.
53
+
54
+ ## Model Details
55
+
56
+ The model was fine-tuned as a regular BERT-based model for NER task using HuggingFace Trainer class.
57
+
58
+ ## Model labels
59
+
60
+ Entity Types: ORG
61
+
62
+ ## Uses
63
+
64
+ ### Direct Use for Inference
65
+
66
+ ```python
67
+ >>> from transformers import pipeline
68
+
69
+ >>> text = """Foreign governments may be spying on your smartphone notifications, senator says. Washington (CNN) — Foreign governments have reportedly attempted to spy on iPhone and Android users through the mobile app notifications they receive on their smartphones - and the US government has forced Apple and Google to keep quiet about it, according to a top US senator. Through legal demands sent to the tech giants, governments have allegedly tried to force Apple and Google to turn over sensitive information that could include the contents of a notification - such as previews of a text message displayed on a lock screen, or an update about app activity, Oregon Democratic Sen. Ron Wyden said in a new report. Wyden's report reflects the latest example of long-running tensions between tech companies and governments over law enforcement demands, which have stretched on for more than a decade. Governments around the world have particularly battled with tech companies over encryption, which provides critical protections to users and businesses while in some cases preventing law enforcement from pursuing investigations into messages sent over the internet."""
70
+
71
+ >>> classifier = pipeline(
72
+ "ner",
73
+ model="guishe/nuner-v1_orgs",
74
+ grouped_entities=True
75
+ )
76
+ >>> classifier(text)
77
+
78
+ [{'entity_group': 'ORG',
79
+ 'score': 0.9821347,
80
+ 'word': 'CNN',
81
+ 'start': 94,
82
+ 'end': 97},
83
+ {'entity_group': 'ORG',
84
+ 'score': 0.99382174,
85
+ 'word': ' Apple',
86
+ 'start': 288,
87
+ 'end': 293},
88
+ {'entity_group': 'ORG',
89
+ 'score': 0.99351865,
90
+ 'word': ' Google',
91
+ 'start': 298,
92
+ 'end': 304},
93
+ {'entity_group': 'ORG',
94
+ 'score': 0.992792,
95
+ 'word': ' Apple',
96
+ 'start': 449,
97
+ 'end': 454},
98
+ {'entity_group': 'ORG',
99
+ 'score': 0.99385214,
100
+ 'word': ' Google',
101
+ 'start': 459,
102
+ 'end': 465}]
103
+ ```
104
 
105
  ## Training procedure
106
 
 
134
  - Pytorch 2.0.0+cu117
135
  - Datasets 2.18.0
136
  - Tokenizers 0.15.2
137
+ -
138
+ ## Citation
139
+
140
+ ### BibTeX
141
+ ```
142
+ @misc{bogdanov2024nuner,
143
+ title={NuNER: Entity Recognition Encoder Pre-training via LLM-Annotated Data},
144
+ author={Sergei Bogdanov and Alexandre Constantin and Timothée Bernard and Benoit Crabbé and Etienne Bernard},
145
+ year={2024},
146
+ eprint={2402.15343},
147
+ archivePrefix={arXiv},
148
+ primaryClass={cs.CL}
149
+ }
150
+ ```