Downloads · 30 days
0
noharm-ai/substance-prediction
substance-prediction is a machine learning model from noharm-ai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for flair. The card lists the license as mit.
https://github.com/noharm-ai/substance-prediction
Downloads · 30 days
0
Access
Public
Updated Nov 29, 2024
Repo size
254 MB
Likes
0
Public
Click a slice to open those files.
.pt254 MB · 100%
From the Hugging Face model README
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)