You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-35Lines changed: 41 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,62 +7,44 @@
7
7
8
8
A very simple framework for **state-of-the-art NLP**. Developed by [Humboldt University of Berlin](https://www.informatik.hu-berlin.de/en/forschung-en/gebiete/ml-en/) and friends.
9
9
10
-
*__IMPORTANT: (30.08.2020)__*We moved our models to a new server. Please update your Flair to the newest version!*
11
-
12
10
---
13
11
14
12
Flair is:
15
13
16
14
***A powerful NLP library.** Flair allows you to apply our state-of-the-art natural language processing (NLP)
17
-
models to your text, such as named entity recognition (NER), part-of-speech tagging (PoS),
15
+
models to your text, such as named entity recognition (NER), part-of-speech tagging (PoS),
16
+
special support for [biomedical data](/resources/docs/HUNFLAIR.md),
18
17
sense disambiguation and classification, with support for a rapidly growing number of languages.
19
18
20
-
***A biomedical NER library.** Flair has special support for [biomedical data](/resources/docs/HUNFLAIR.md) with
21
-
state-of-the-art models for biomedical NER and support for over 32 biomedical datasets.
22
-
23
19
***A text embedding library.** Flair has simple interfaces that allow you to use and combine different word and
24
20
document embeddings, including our proposed **[Flair embeddings](https://www.aclweb.org/anthology/C18-1139/)**, BERT embeddings and ELMo embeddings.
25
21
26
22
***A PyTorch NLP framework.** Our framework builds directly on [PyTorch](https://pytorch.org/), making it easy to
27
23
train your own models and experiment with new approaches using Flair embeddings and classes.
28
24
29
-
Now at [version 0.7](https://github.com/flairNLP/flair/releases)!
30
-
31
-
## Comparison with State-of-the-Art
32
-
33
-
Flair outperforms the previous best methods on a range of NLP tasks:
25
+
Now at [version 0.8](https://github.com/flairNLP/flair/releases)!
34
26
35
-
| Task | Language | Dataset | Flair | Previous best |
| Named Entity Recognition | German | Conll-03 |**88.27** (F1) |*78.76 [(Lample et al., 2016)](https://arxiv.org/abs/1603.01360)*|
43
-
| Named Entity Recognition |German | Germeval |**84.65** (F1) |*79.08 [(Hänig et al, 2014)](http://asv.informatik.uni-leipzig.de/publication/file/300/GermEval2014_ExB.pdf)*|
44
-
| Named Entity Recognition | Dutch | Conll-02 |**92.38** (F1) |*81.74 [(Lample et al., 2016)](https://arxiv.org/abs/1603.01360)*|
45
-
| Named Entity Recognition |Polish | PolEval-2018 |**86.6** (F1) <br> [(Borchmann et al., 2018)](https://github.com/applicaai/poleval-2018)|*85.1 [(PolDeepNer)](https://github.com/CLARIN-PL/PolDeepNer/)*|
27
+
## State-of-the-Art Models
46
28
47
-
Here's how to [reproduce these numbers](/resources/docs/EXPERIMENTS.md) using Flair. You can also find detailed evaluations and discussions in our papers:
29
+
Flair ships with state-of-the-art models for a range of NLP tasks. For instance, check out our latest NER models:
48
30
49
-
**[Contextual String Embeddings for Sequence Labeling](https://www.aclweb.org/anthology/C18-1139/).
50
-
Alan Akbik, Duncan Blythe and Roland Vollgraf.
51
-
27th International Conference on Computational Linguistics, **COLING 2018**.*
31
+
| Language | Dataset | Flair | Best published | Model card & demo
| English | Conll-03 (4-class) |**94.09**|*94.3 [(Yamada et al., 2018)](https://doi.org/10.18653/v1/2020.emnlp-main.523)*|[Flair English 4-class NER demo](https://huggingface.co/flair/ner-english-large)|
34
+
| English | Ontonotes (18-class) |**90.93**|*91,3 [(Yu et al., 2016)](https://www.aclweb.org/anthology/2020.acl-main.577.pdf)*|[Flair English 18-class NER demo](https://huggingface.co/flair/ner-english-ontonotes-large)|
35
+
| German | Conll-03 (4-class) |**92,31**|*90.3 [(Yu et al., 2016)](https://www.aclweb.org/anthology/2020.acl-main.577.pdf)*|[Flair German 4-class NER demo](https://huggingface.co/flair/ner-german-large)|
36
+
| Dutch | Conll-03 (4-class) |**95,25**|*93.7 [(Yu et al., 2016)](https://www.aclweb.org/anthology/2020.acl-main.577.pdf)*|[Flair Dutch 4-class NER demo](https://huggingface.co/flair/ner-dutch-large)|
37
+
| Spanish | Conll-03 (4-class) |**90,54**|*90.3 [(Yu et al., 2016)](https://www.aclweb.org/anthology/2020.acl-main.577.pdf)*|[Flair Spanish 18-class NER demo](https://huggingface.co/flair/ner-spanish-large)|
52
38
53
-
**[Pooled Contextualized Embeddings for Named Entity Recognition](https://www.aclweb.org/anthology/papers/N/N19/N19-1078/).
54
-
Alan Akbik, Tanja Bergmann and Roland Vollgraf.
55
-
2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics, **NAACL 2019**.*
39
+
**New:** Most Flair sequence tagging models (named entity recognition, part-of-speech tagging etc.) are now hosted
40
+
on the [__🤗 HuggingFace model hub__](https://huggingface.co/models?filter=flair)! You can browse models, check detailed information on how they were trained, and even try each model out online!
56
41
57
-
**[FLAIR: An Easy-to-Use Framework for State-of-the-Art NLP](https://www.aclweb.org/anthology/papers/N/N19/N19-4010/).
58
-
Alan Akbik, Tanja Bergmann, Duncan Blythe, Kashif Rasul, Stefan Schweter and Roland Vollgraf.
59
-
2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations), **NAACL 2019**.*
60
42
61
43
## Quick Start
62
44
63
45
### Requirements and Installation
64
46
65
-
The project is based on PyTorch 1.1+ and Python 3.6+, because method signatures and type hints are beautiful.
47
+
The project is based on PyTorch 1.5+ and Python 3.6+, because method signatures and type hints are beautiful.
66
48
If you do not have Python 3.6, install it first. [Here is how for Ubuntu 16.04](https://vsupalov.com/developing-with-python3-6-on-ubuntu-16-04/).
67
49
Then, in your favorite virtual environment, simply do:
68
50
@@ -144,7 +126,7 @@ There are also good third-party articles and posts that illustrate how to use Fl
144
126
145
127
## Citing Flair
146
128
147
-
Please cite the following paper when using Flair:
129
+
Please cite [the following paper](https://www.aclweb.org/anthology/C18-1139/) when using Flair embeddings:
148
130
149
131
```
150
132
@inproceedings{akbik2018coling,
@@ -156,7 +138,19 @@ Please cite the following paper when using Flair:
156
138
}
157
139
```
158
140
159
-
If you use the pooled version of the Flair embeddings (PooledFlairEmbeddings), please cite:
141
+
If you use the Flair framework for your experiments, please cite [this paper](https://www.aclweb.org/anthology/papers/N/N19/N19-4010/):
142
+
143
+
```
144
+
@inproceedings{akbik2019flair,
145
+
title={FLAIR: An easy-to-use framework for state-of-the-art NLP},
146
+
author={Akbik, Alan and Bergmann, Tanja and Blythe, Duncan and Rasul, Kashif and Schweter, Stefan and Vollgraf, Roland},
147
+
booktitle={{NAACL} 2019, 2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics (Demonstrations)},
148
+
pages={54--59},
149
+
year={2019}
150
+
}
151
+
```
152
+
153
+
If you use the pooled version of the Flair embeddings (PooledFlairEmbeddings), please cite [this paper](https://www.aclweb.org/anthology/papers/N/N19/N19-1078/):
160
154
161
155
```
162
156
@inproceedings{akbik2019naacl,
@@ -168,6 +162,18 @@ If you use the pooled version of the Flair embeddings (PooledFlairEmbeddings), p
168
162
}
169
163
```
170
164
165
+
If you use our new "FLERT" models or approach, please cite [this paper](https://arxiv.org/abs/2011.06993):
166
+
167
+
```
168
+
@misc{schweter2020flert,
169
+
title={FLERT: Document-Level Features for Named Entity Recognition},
170
+
author={Stefan Schweter and Alan Akbik},
171
+
year={2020},
172
+
eprint={2011.06993},
173
+
archivePrefix={arXiv},
174
+
primaryClass={cs.CL}
175
+
```
176
+
171
177
## Contact
172
178
173
179
Please email your questions or comments to [Alan Akbik](http://alanakbik.github.io/).
0 commit comments