Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:500
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use Manborough/isabelle-premise-encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Manborough/isabelle-premise-encoder with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Manborough/isabelle-premise-encoder") sentences = [ "theorem ptyping_match:\n \"\\<turnstile> p : T \\<Rightarrow> \\<Delta> \\<Longrightarrow> [] \\<turnstile> t : T \\<Longrightarrow> t \\<in> value \\<Longrightarrow>\n \\<exists>ts. \\<turnstile> p \\<rhd> t \\<Rightarrow> ts\"\n \"\\<turnstile> fps [:] fTs \\<Rightarrow> \\<Delta> \\<Longrightarrow> [] \\<turnstile> fs [:] fTs \\<Longrightarrow>\n \\<forall>(l, t) \\<in> set fs. t \\<in> value \\<Longrightarrow> \\<exists>us. \\<turnstile> fps [\\<rhd>] fs \\<Rightarrow> us\"", " cases: fixes a1 :: \"pat\" and a2 :: \"trm\" and a3 :: \"trm list\" assumes \"\\<turnstile> a1 \\<rhd> a2 \\<Rightarrow> a3\" obtains T :: \"POPLmarkRecord.type\" and t :: \"trm\" where \"a1 = PVar T\" and \"a2 = t\" and \"a3 = [t]\" | fps :: \"(char list \\<times> pat) list\" and fs :: \"(char list \\<times> trm) list\" and ts :: \"trm list\" where \"a1 = PRcd fps\" and \"a2 = Rcd fs\" and \"a3 = ts\" and \"\\<turnstile> fps [\\<rhd>] fs \\<Rightarrow> ts\"", " less_le_not_le: fixes less_eq :: \"'a \\<Rightarrow> 'a \\<Rightarrow> bool\" and less :: \"'a \\<Rightarrow> 'a \\<Rightarrow> bool\" and x :: \"'a\" and y :: \"'a\" assumes \"class.preorder less_eq less\" shows \"less x y = (less_eq x y \\<and> \\<not> less_eq y x)\"", " UnE: fixes c :: \"'b\" and A :: \"'b set\" and B :: \"'b set\" assumes \"c \\<in> A \\<union> B\" obtains \"c \\<in> A\" | \"c \\<in> B\"" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K