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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ncoop57
/
codeformer-java

Sentence Similarity
sentence-transformers
PyTorch
roberta
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use ncoop57/codeformer-java with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use ncoop57/codeformer-java with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("ncoop57/codeformer-java")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
codeformer-java
499 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
ncoop57
Add model
a7dd858 over 4 years ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • config.json
    64 Bytes
    Add model over 4 years ago
  • pytorch_model.bin
    499 MB
    xet
    Add model over 4 years ago