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

  • Log In
  • Sign Up

danfeg
/
AraBERT_Base

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

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

  • Libraries
  • sentence-transformers

    How to use danfeg/AraBERT_Base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("danfeg/AraBERT_Base")
    
    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 danfeg/AraBERT_Base with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("danfeg/AraBERT_Base")
    model = AutoModel.from_pretrained("danfeg/AraBERT_Base")
  • Notebooks
  • Google Colab
  • Kaggle
AraBERT_Base
1.48 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
danfeg's picture
danfeg
Add new SentenceTransformer model.
c31fc52 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
    3.13 kB
    Add new SentenceTransformer model. about 2 years ago
  • config.json
    638 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • config_sentence_transformers.json
    171 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • model.safetensors
    1.48 GB
    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
    125 Bytes
    Add new SentenceTransformer model. about 2 years ago
  • tokenizer.json
    1.68 MB
    Add new SentenceTransformer model. about 2 years ago
  • tokenizer_config.json
    6.79 kB
    Add new SentenceTransformer model. about 2 years ago
  • vocab.txt
    656 kB
    Add new SentenceTransformer model. about 2 years ago