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

dbourget
/
pb-ds1-48K-philsim

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:106810
loss:CosineSimilarityLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use dbourget/pb-ds1-48K-philsim with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use dbourget/pb-ds1-48K-philsim with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("dbourget/pb-ds1-48K-philsim")
    
    sentences = [
        "In  The Law of Civilization and Decay,  Brooks provides a detailed look at the rise and fall of civilizations, offering a critical perspective on the impact of capitalism. As societies become prosperous, their pursuit of wealth ultimately leads to their own downfall as greed takes over.",
        "Patrick Todd's The Open Future argues that all future contingent statements, such as 'It will rain tomorrow', are inherently false.",
        "If propositions are made true in virtue of corresponding to facts, then what are the truth-makers of true negative propositions such as ‘The apple is not red’? Russell argued that there must be negative facts to account for what makes true negative propositions true and false positive propositions false. Others, more parsimonious in their ontological commitments, have attempted to avoid them. Wittgenstein rejected them since he was loath to think that the sign for negation referred to a negative element in a fact. A contemporary of Russell’s, Raphael Demos, attempted to eliminate them by appealing to ‘incompatibility’ facts. More recently, Armstrong has appealed to the totality of positive facts as the ground of the truth of true negative propositions. Oaklander and Miracchi have suggested that the absence or non-existence of the positive fact (which is not itself a further fact) is the basis of a positive proposition being false and therefore of the truth of its negation.",
        "The Law of Civilization and Decay is an overview of history, articulating Brooks' critical view of capitalism. A civilization grows wealthy, and then its wealth causes it to crumble upon itself due to greed."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
pb-ds1-48K-philsim
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
dbourget's picture
dbourget
Add new SentenceTransformer model.
2db6871 verified about 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • README.md
    34.9 kB
    Add new SentenceTransformer model. about 2 years ago
  • config.json
    625 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • config_sentence_transformers.json
    201 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • model.safetensors
    438 MB
    xet
    Add new SentenceTransformer model. about 2 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • special_tokens_map.json
    798 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • tokenizer.json
    1.13 MB
    Add new SentenceTransformer model. about 2 years ago
  • tokenizer_config.json
    1.21 kB
    Add new SentenceTransformer model. about 2 years ago