Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Manborough
/
isabelle-premise-encoder

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:500
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

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
isabelle-premise-encoder
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
Manborough's picture
Manborough
Add new SentenceTransformer model
29bba33 verified 2 months ago
  • 1_Pooling
    Add new SentenceTransformer model 2 months ago
  • .gitattributes
    1.52 kB
    initial commit 2 months ago
  • README.md
    17.5 kB
    Add new SentenceTransformer model 2 months ago
  • config.json
    745 Bytes
    Add new SentenceTransformer model 2 months ago
  • config_sentence_transformers.json
    283 Bytes
    Add new SentenceTransformer model 2 months ago
  • model.safetensors
    90.9 MB
    xet
    Add new SentenceTransformer model 2 months ago
  • modules.json
    429 Bytes
    Add new SentenceTransformer model 2 months ago
  • sentence_bert_config.json
    241 Bytes
    Add new SentenceTransformer model 2 months ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model 2 months ago
  • tokenizer_config.json
    594 Bytes
    Add new SentenceTransformer model 2 months ago