Flair
Portuguese
hdpsantos's picture
Update README.md
833b8ae verified
|
raw
history blame
597 Bytes
metadata
license: mit
datasets:
  - noharm-ai/substance-dataset
language:
  - pt
base_model:
  - neuralmind/bert-base-portuguese-cased
library_name: flair

Model Card for Substance Prediction

Uses

from flair.models import TextClassifier
from flair.data import Sentence

# load the model
classifier = TextClassifier.load('noharm-ai/substance-prediction')

# make a sentence
sentence = Sentence('Tylenon 750 mg')

# predict Substance tags
classifier.predict(sentence)

# print the sentence with the tags
print(sentence)

More information:

https://github.com/noharm-ai/substance-prediction