alanakbik commited on
Commit
33d405d
1 Parent(s): 671cada

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - flair
4
+ - token-classification
5
+ - sequence-tagger-model
6
+ language: en
7
+ datasets:
8
+ - conll2003
9
+ inference: false
10
+ ---
11
+
12
+ ## Flair NER model `en-ner-conll03-v0.4.pt`
13
+
14
+ Imported from https://nlp.informatik.hu-berlin.de/resources/models/ner/
15
+
16
+ ### Demo: How to use in Flair
17
+
18
+ ```python
19
+ from flair.data import Sentence
20
+ from flair.models import SequenceTagger
21
+
22
+ sentence = Sentence(
23
+ "My name is Julien, I currently live in Paris, I work at Hugging Face, Inc."
24
+ )
25
+
26
+ tagger = SequenceTagger.load("julien-c/flair-ner")
27
+
28
+
29
+ # predict NER tags
30
+ tagger.predict(sentence)
31
+
32
+ # print sentence with predicted tags
33
+ print(sentence.to_tagged_string())
34
+
35
+
36
+ ```
37
+
38
+ yields the following output:
39
+
40
+ > `My name is Julien <S-PER> , I currently live in Paris <S-LOC> , I work at Hugging <B-LOC> Face <E-LOC> .`