How to use JohanHeinsen/ENO_first_identifier with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("JohanHeinsen/ENO_first_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]
How to use JohanHeinsen/ENO_first_identifier with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("JohanHeinsen/ENO_first_identifier")
This is a text classifier designed to identify whether a line of text is the first line of text in a news item. The model is designed to aid the segmentation of ENO.
Accuracy: 0.9041353383458647
f1: 0.9092526690391459
Files info
Base model