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

allenai
/
transformer_qa

Question Answering
AllenNLP
TensorBoard
English
Model card Files Files and versions
xet
Metrics Training metrics Community
1

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

  • Libraries
  • AllenNLP

    How to use allenai/transformer_qa with AllenNLP:

    import allennlp_models
    from allennlp.predictors.predictor import Predictor
    
    predictor = Predictor.from_path("hf://allenai/transformer_qa")
    predictor_input = {"passage": "My name is Wolfgang and I live in Berlin", "question": "Where do I live?"}
    predictions = predictor.predict_json(predictor_input)
  • Notebooks
  • Google Colab
  • Kaggle
transformer_qa / log
124 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
dirkgr's picture
dirkgr
Update repository
75345d2 over 4 years ago
  • train
    Update repository over 4 years ago
  • validation
    Update repository over 4 years ago