Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,9 @@
|
|
| 6 |
|
| 7 |
# Model Card for Model ID
|
| 8 |
|
| 9 |
-
This model is developed to tag Names, Organisations and addresses. I have used a data combined
|
|
|
|
|
|
|
| 10 |
|
| 11 |
### Model Description
|
| 12 |
|
|
@@ -15,24 +17,14 @@ This model is developed to tag Names, Organisations and addresses. I have used a
|
|
| 15 |
- **Language(s) (NLP):** Named Entity recognition
|
| 16 |
- **Finetuned from model [optional]:** bert-base-cased
|
| 17 |
|
| 18 |
-
### Model Sources [optional]
|
| 19 |
-
|
| 20 |
-
<!-- Provide the basic links for the model. -->
|
| 21 |
-
|
| 22 |
-
- **Repository:** [More Information Needed]
|
| 23 |
-
- **Paper [optional]:** [More Information Needed]
|
| 24 |
-
- **Demo [optional]:** [More Information Needed]
|
| 25 |
-
|
| 26 |
## Uses
|
| 27 |
|
| 28 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 29 |
-
|
| 30 |
### Direct Use
|
| 31 |
|
| 32 |
```python
|
| 33 |
-
from transformers import
|
| 34 |
from transformers import pipeline
|
| 35 |
-
tokenizer =
|
| 36 |
model = AutoModelForTokenClassification.from_pretrained("ctrlbuzz/bert-addresses")
|
| 37 |
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|
| 38 |
example = "While Maria was representing Johnson & Associates at a conference in Spain, she mailed me a letter from her new office at 123 Elm St., Apt. 4B, Springfield, IL.",
|
|
|
|
| 6 |
|
| 7 |
# Model Card for Model ID
|
| 8 |
|
| 9 |
+
This model is developed to tag Names, Organisations and addresses. I have used a data combined fro Conll, ontonotes5, and a custom address dataset that was self made. Cleaned
|
| 10 |
+
out the tags.
|
| 11 |
+
[\"O\", \"B-ORG\", \"I-ORG\", \"B-PER\", \"I-PER\",'B-addr','I-addr']
|
| 12 |
|
| 13 |
### Model Description
|
| 14 |
|
|
|
|
| 17 |
- **Language(s) (NLP):** Named Entity recognition
|
| 18 |
- **Finetuned from model [optional]:** bert-base-cased
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
## Uses
|
| 21 |
|
|
|
|
|
|
|
| 22 |
### Direct Use
|
| 23 |
|
| 24 |
```python
|
| 25 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 26 |
from transformers import pipeline
|
| 27 |
+
tokenizer = AutoTokenizer.from_pretrained('bert-base-cased')
|
| 28 |
model = AutoModelForTokenClassification.from_pretrained("ctrlbuzz/bert-addresses")
|
| 29 |
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|
| 30 |
example = "While Maria was representing Johnson & Associates at a conference in Spain, she mailed me a letter from her new office at 123 Elm St., Apt. 4B, Springfield, IL.",
|