Serega6678
commited on
Commit
•
612fc9b
1
Parent(s):
79aa539
Update README.md
Browse files
README.md
CHANGED
@@ -38,12 +38,10 @@ from gliner import GLiNER
|
|
38 |
model = GLiNER.from_pretrained("numind/NuNerZero_span")
|
39 |
|
40 |
# NuZero requires labels to be lower-cased!
|
41 |
-
labels = ["
|
42 |
-
labels [l.lower() for l in labels]
|
43 |
|
44 |
-
text = ""
|
45 |
-
|
46 |
-
"""
|
47 |
|
48 |
entities = model.predict_entities(text, labels)
|
49 |
|
@@ -51,6 +49,13 @@ for entity in entities:
|
|
51 |
print(entity["text"], "=>", entity["label"])
|
52 |
```
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
## Fine-tuning
|
55 |
|
56 |
A fine-tuning script can be found [here](https://colab.research.google.com/drive/1fu15tWCi0SiQBBelwB-dUZDZu0RVfx_a?usp=sharing).
|
|
|
38 |
model = GLiNER.from_pretrained("numind/NuNerZero_span")
|
39 |
|
40 |
# NuZero requires labels to be lower-cased!
|
41 |
+
labels = ["organization", "initiative", "project"]
|
42 |
+
labels = [l.lower() for l in labels]
|
43 |
|
44 |
+
text = "At the annual technology summit, the keynote address was delivered by a senior member of the Association for Computing Machinery Special Interest Group on Algorithms and Computation Theory, which recently launched an expansive initiative titled 'Quantum Computing and Algorithmic Innovations: Shaping the Future of Technology'. This initiative explores the implications of quantum mechanics on next-generation computing and algorithm design and is part of a broader effort that includes the 'Global Computational Science Advancement Project'. The latter focuses on enhancing computational methodologies across scientific disciplines, aiming to set new benchmarks in computational efficiency and accuracy."
|
|
|
|
|
45 |
|
46 |
entities = model.predict_entities(text, labels)
|
47 |
|
|
|
49 |
print(entity["text"], "=>", entity["label"])
|
50 |
```
|
51 |
|
52 |
+
```
|
53 |
+
Association for Computing Machinery Special Interest Group on Algorithms and Computation Theory => organization
|
54 |
+
Quantum Computing and Algorithmic Innovations: Shaping the Future of Technology => initiative
|
55 |
+
Global Computational Science Advancement Project => project
|
56 |
+
```
|
57 |
+
|
58 |
+
|
59 |
## Fine-tuning
|
60 |
|
61 |
A fine-tuning script can be found [here](https://colab.research.google.com/drive/1fu15tWCi0SiQBBelwB-dUZDZu0RVfx_a?usp=sharing).
|