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

OpenMed
/
GLiNER2.5-BioNER-Disease-Base-v1

Token Classification
Safetensors
GLiNER2
GLiNER
English
openmed
extractor
medical
biomedical
clinical-nlp
named-entity-recognition
disease
Eval Results (legacy)
Model card Files Files and versions
xet
Community
1

Instructions to use OpenMed/GLiNER2.5-BioNER-Disease-Base-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • GLiNER2

    How to use OpenMed/GLiNER2.5-BioNER-Disease-Base-v1 with GLiNER2:

    from gliner2 import AutoExtractor
    
    extractor = AutoExtractor.from_pretrained("OpenMed/GLiNER2.5-BioNER-Disease-Base-v1")
    
    # Extract entities
    text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday."
    result = extractor.extract_entities(text, ["company", "person", "product", "location"])
    
    print(result)
  • GLiNER

    How to use OpenMed/GLiNER2.5-BioNER-Disease-Base-v1 with GLiNER:

    from gliner import GLiNER
    
    model = GLiNER.from_pretrained("OpenMed/GLiNER2.5-BioNER-Disease-Base-v1")
    
    text = "Cristiano Ronaldo dos Santos Aveiro was born on 5 February 1985 in Funchal, Madeira, Portugal."
    labels = ["person", "date", "location"]
    
    entities = model.predict_entities(text, labels)
    for entity in entities:
        print(entity["text"], "=>", entity["label"])
  • Notebooks
  • Google Colab
  • Kaggle
GLiNER2.5-BioNER-Disease-Base-v1
783 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
MaziyarPanahi's picture
MaziyarPanahi
OpenMed GLiNER2.5-BioNER-Disease-Base-v1
fccb296 1 day ago
  • encoder_config
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago
  • .gitattributes
    1.52 kB
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago
  • LICENSE
    11.4 kB
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago
  • README.md
    13.3 kB
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago
  • config.json
    4.1 kB
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago
  • model.safetensors
    774 MB
    xet
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago
  • special_tokens_map.json
    2.42 kB
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago
  • tokenizer.json
    8.33 MB
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago
  • tokenizer_config.json
    3.34 kB
    OpenMed GLiNER2.5-BioNER-Disease-Base-v1 1 day ago