Downloads · 30 days
0
0% of all-time downloads
regel-corpus/hunflair2-regel-enhancer
hunflair2-regel-enhancer is a token classification model from regel-corpus. Use it when you need labels on individual words, such as names. It is set up for flair.
HunFlair (biomedical flair) for enhancer entity:
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
628
Public
Repo size
434 MB
Likes
0
Public
Click a slice to open those files.
.bin434 MB · 100%
From the Hugging Face model README
HunFlair (biomedical flair) for enhancer entity:
Enhancer entity typePredicts 1 tag:
| tag | meaning |
|---|---|
| Enhancer | DNA enhancer region |
Requires:
pip install flair or pip install git+https://github.com/flairNLP/flair.git)from flair.data import Sentence
from flair.nn import Classifier
from flair.tokenization import SciSpacyTokenizer
text = "An upstream activator of the mitogen-activated protein (MAP) kinase pathways was used to isolate an enhancer element located between -89 and -50 bp in PAI-1 promoter that was activated by MEKK-1."
sentence = Sentence(text, use_tokenizer=SciSpacyTokenizer())
tagger = Classifier.load("regel-corpus/hunflair2-regel-enhancer")
tagger.predict(sentence)
print('The following NER tags are found:')
# iterate over entities and print
for entity in sentence.get_spans('ner'):
print(entity)