Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

TurkuNLP
/
sbert-cased-finnish-paraphrase

Sentence Similarity
sentence-transformers
PyTorch
Safetensors
Transformers
Finnish
bert
feature-extraction
Model card Files Files and versions
xet
Community
2

Instructions to use TurkuNLP/sbert-cased-finnish-paraphrase with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use TurkuNLP/sbert-cased-finnish-paraphrase with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("TurkuNLP/sbert-cased-finnish-paraphrase")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use TurkuNLP/sbert-cased-finnish-paraphrase with Transformers:

    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("TurkuNLP/sbert-cased-finnish-paraphrase")
    model = AutoModel.from_pretrained("TurkuNLP/sbert-cased-finnish-paraphrase", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
sbert-cased-finnish-paraphrase / 1_Pooling
190 Bytes
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
lhchan's picture
lhchan
pytorch model
90b4eb7 almost 5 years ago
  • config.json
    190 Bytes
    pytorch model almost 5 years ago