Instructions to use JohanHeinsen/Labour_advertisement_identifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use JohanHeinsen/Labour_advertisement_identifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("JohanHeinsen/Labour_advertisement_identifier") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - setfit
How to use JohanHeinsen/Labour_advertisement_identifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("JohanHeinsen/Labour_advertisement_identifier") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
a689352 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:bc1dda5864304bb7fd29265a5ac99329e2d3d52bae019a3a419cfbc4a949aa0b
size 7007
|