Views
No views yet
en_core_web_blank)| Metric | Value |
|---|---|
| Precision | 0.9111 |
| Recall | 0.7885 |
| F1 Score | 0.8454 |
| True Positives | 41 |
| False Positives | 4 |
| False Negatives | 11 |
1import spacy
2
3nlp = spacy.load("./spacy-nvd-ner-v1")
4
5text = "OpenSSL versions before 1.1.1n contain a buffer overflow in the X.509 verifier."
6doc = nlp(text)
7
8for ent in doc.ents:
9 print(f"{ent.text} -> {ent.label_}")
10 # Output:
11 # 1.1.1n -> VERSION_RANGE
12 # X.509 -> API_SYMBOL1import spacy
2nlp = spacy.load("./spacy-nvd-ner-v1")