Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Portuguese Clinical POS model by @LucasFerroHAILab #1789

Merged
merged 1 commit into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions flair/embeddings/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def get_names(self) -> List[str]:
names.extend(embedding.get_names())
return names


class WordEmbeddings(TokenEmbeddings):
"""Standard static word embeddings, such as GloVe or FastText."""

Expand Down
4 changes: 4 additions & 0 deletions flair/models/sequence_tagger_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,10 @@ def _fetch_model(model_name) -> str:
model_map["ml-pos"] = "https://raw.githubusercontent.com/qburst/models-repository/master/FlairMalayalamModels/malayalam-xpos-model.pt"
model_map["ml-upos"] = "https://raw.githubusercontent.com/qburst/models-repository/master/FlairMalayalamModels/malayalam-upos-model.pt"

model_map["pt-pos-clinical"] = "/".join(
[hu_path, "clinical-pos-pt", "pucpr-flair-clinical-pos-tagging-best-model.pt"]
)

model_map["keyphrase"] = "/".join(
[hu_path, "keyphrase-semeval2017-scibert", "keyphrase-en-scibert.pt"]
)
Expand Down
1 change: 1 addition & 0 deletions resources/docs/TUTORIAL_2_TAGGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ Thanks to our contributors we are also able to distribute a couple of models for
| 'da-pos' | Named Entity Recognition | [Danish Dependency Treebank](https://github.com/UniversalDependencies/UD_Danish-DDT/blob/master/README.md) | | [AmaliePauli](https://github.com/AmaliePauli) |
| 'ml-pos' | Part-of-Speech Tagging (fine-grained) | 30000 Malayalam sentences | **83** | [sabiqueqb](https://github.com/sabiqueqb) |
| 'ml-upos' | Part-of-Speech Tagging (universal)| 30000 Malayalam sentences | **87** | [sabiqueqb](https://github.com/sabiqueqb) |
| 'pt-pos-clinical' | Part-of-Speech Tagging (fine-grained) for clinical texts | [PUCPR](https://github.com/HAILab-PUCPR/portuguese-clinical-pos-tagger) | **92.39** | [LucasFerroHAILab](https://github.com/LucasFerroHAILab) |


### Tagging a German sentence
Expand Down