Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

trtd56
/
practical_nlp_course_7

Sentence Similarity
sentence-transformers
Safetensors
Transformers
bert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use trtd56/practical_nlp_course_7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use trtd56/practical_nlp_course_7 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("trtd56/practical_nlp_course_7")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use trtd56/practical_nlp_course_7 with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("trtd56/practical_nlp_course_7")
    model = AutoModel.from_pretrained("trtd56/practical_nlp_course_7")
  • Notebooks
  • Google Colab
  • Kaggle
practical_nlp_course_7
502 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
trtd56's picture
trtd56
Add new SentenceTransformer model.
6d632f5 verified over 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. over 2 years ago
  • .gitattributes
    1.62 kB
    Add new SentenceTransformer model. over 2 years ago
  • README.md
    3.9 kB
    Add new SentenceTransformer model. over 2 years ago
  • config.json
    701 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • model.safetensors
    471 MB
    xet
    Add new SentenceTransformer model. over 2 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • special_tokens_map.json
    280 Bytes
    Add new SentenceTransformer model. over 2 years ago
  • tokenizer.json
    17.1 MB
    xet
    Add new SentenceTransformer model. over 2 years ago
  • tokenizer_config.json
    1.42 kB
    Add new SentenceTransformer model. over 2 years ago
  • unigram.json
    14.8 MB
    xet
    Add new SentenceTransformer model. over 2 years ago