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

nlplab
/
political-entity-recognizer

Token Classification
Transformers
PyTorch
Safetensors
bert
Model card Files Files and versions
xet
Community
1

Instructions to use nlplab/political-entity-recognizer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use nlplab/political-entity-recognizer with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("token-classification", model="nlplab/political-entity-recognizer")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForTokenClassification
    
    tokenizer = AutoTokenizer.from_pretrained("nlplab/political-entity-recognizer")
    model = AutoModelForTokenClassification.from_pretrained("nlplab/political-entity-recognizer")
  • Notebooks
  • Google Colab
  • Kaggle
political-entity-recognizer
814 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 8 commits
voidful's picture
voidful
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
c2ba9f8 about 3 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • config.json
    985 Bytes
    Upload config.json over 4 years ago
  • model.safetensors
    407 MB
    xet
    Adding `safetensors` variant of this model (#1) about 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?

    407 MB
    xet
    Upload pytorch_model.bin with git-lfs over 4 years ago
  • special_tokens_map.json
    112 Bytes
    Upload special_tokens_map.json over 4 years ago
  • tokenizer.json
    269 kB
    Upload tokenizer.json over 4 years ago
  • tokenizer_config.json
    322 Bytes
    Upload tokenizer_config.json over 4 years ago
  • vocab.txt
    110 kB
    Upload vocab.txt over 4 years ago