ctrlbuzz commited on
Commit
b4f1c7d
1 Parent(s): e9bec17

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -5
README.md CHANGED
@@ -29,19 +29,16 @@ This model is developed to tag Names, Organisations and addresses. I have used a
29
 
30
  ### Direct Use
31
 
 
32
  from transformers import BertTokenizer, AutoModelForTokenClassification
33
  from transformers import pipeline
34
-
35
  tokenizer = BertTokenizer.from_pretrained('bert-base-cased')
36
-
37
  model = AutoModelForTokenClassification.from_pretrained("ctrlbuzz/bert-addresses")
38
-
39
  nlp = pipeline("ner", model=model, tokenizer=tokenizer)
40
-
41
  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.",
42
 
43
  print(nlp(example))
44
-
45
 
46
 
47
 
 
29
 
30
  ### Direct Use
31
 
32
+ '''python
33
  from transformers import BertTokenizer, AutoModelForTokenClassification
34
  from transformers import pipeline
 
35
  tokenizer = BertTokenizer.from_pretrained('bert-base-cased')
 
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.",
39
 
40
  print(nlp(example))
41
+ '''
42
 
43
 
44