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

KoichiYasuoka
/
bert-ancient-chinese-base-ud-head

Question Answering
Transformers
PyTorch
Literary Chinese
bert
classical chinese
literary chinese
ancient chinese
dependency-parsing
Model card Files Files and versions
xet
Community
3

Instructions to use KoichiYasuoka/bert-ancient-chinese-base-ud-head with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use KoichiYasuoka/bert-ancient-chinese-base-ud-head with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "question-answering" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # pip install "transformers<5.0.0"
    from transformers import pipeline
    
    pipe = pipeline("question-answering", model="KoichiYasuoka/bert-ancient-chinese-base-ud-head")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForQuestionAnswering
    
    tokenizer = AutoTokenizer.from_pretrained("KoichiYasuoka/bert-ancient-chinese-base-ud-head")
    model = AutoModelForQuestionAnswering.from_pretrained("KoichiYasuoka/bert-ancient-chinese-base-ud-head", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
bert-ancient-chinese-base-ud-head
1.38 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 12 commits
KoichiYasuoka's picture
KoichiYasuoka
support transformers>=5
fd44659 3 months ago
  • deprel
    model_max_length over 4 years ago
  • tagger
    model_max_length over 4 years ago
  • .gitattributes
    1.17 kB
    initial commit over 4 years ago
  • README.md
    4.32 kB
    support transformers>=5 3 months ago
  • config.json
    885 Bytes
    initial release over 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    459 MB
    xet
    initial release over 4 years ago
  • special_tokens_map.json
    112 Bytes
    initial release over 4 years ago
  • tokenizer_config.json
    300 Bytes
    model_max_length over 4 years ago
  • vocab.txt
    178 kB
    initial release over 4 years ago