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

pierluigic
/
xl-lexeme

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

Instructions to use pierluigic/xl-lexeme with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use pierluigic/xl-lexeme with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("pierluigic/xl-lexeme")
    
    sentences = [
        "Provide a large table; this is a horizontal <t>plane</t>, and will represent the ground plane, viz.",
        "The President's <t>plane</t> landed at Goose Bay at 9:03 p.m.",
        "any line joining two points on a <t>plane</t> lies wholly on that plane",
        "the flight was delayed due to trouble with the <t>plane</t>"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use pierluigic/xl-lexeme with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("pierluigic/xl-lexeme")
    model = AutoModel.from_pretrained("pierluigic/xl-lexeme", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
xl-lexeme
Ctrl+K
Ctrl+K
  • 1 contributor
History: 16 commits
pierluigic's picture
pierluigic
Update README.md
c9f85c6 almost 3 years ago
  • 1_Pooling
    Add new SentenceTransformer model. over 3 years ago
  • .gitattributes
    1.58 kB
    Add new SentenceTransformer model. over 3 years ago
  • README.md
    3.5 kB
    Update README.md almost 3 years ago
  • added_tokens.json
    38 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • config.json
    696 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • config_sentence_transformers.json
    123 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch.FloatStorage",
    • "torch.LongStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict"

    What is a pickle import?

    2.24 GB
    xet
    Add new SentenceTransformer model. over 3 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Add new SentenceTransformer model. over 3 years ago
  • special_tokens_map.json
    280 Bytes
    Add new SentenceTransformer model. over 3 years ago
  • tokenizer.json
    17.1 MB
    xet
    Add new SentenceTransformer model. over 3 years ago
  • tokenizer_config.json
    418 Bytes
    Add new SentenceTransformer model. over 3 years ago