Spaces:
Build error
Build error
Download drqa/reader/__init__.py from zhenyundeng/AVeriTeC-API: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/spaces/zhenyundeng/AVeriTeC-API/resolve/main/drqa/reader/__init__.py
- Command line
-
hf download hf://spaces/zhenyundeng/AVeriTeC-API/drqa/reader/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/zhenyundeng/AVeriTeC-API/resolve/main/drqa/reader/__init__.py
617 Bytes
| #!/usr/bin/env python3 | |
| # Copyright 2017-present, Facebook, Inc. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| import os | |
| from ..tokenizers import CoreNLPTokenizer | |
| from .. import DATA_DIR | |
| DEFAULTS = { | |
| 'tokenizer': CoreNLPTokenizer, | |
| 'model': os.path.join(DATA_DIR, 'reader/single.mdl'), | |
| } | |
| def set_default(key, value): | |
| global DEFAULTS | |
| DEFAULTS[key] = value | |
| from .model import DocReader | |
| from .predictor import Predictor | |
| from . import config | |
| from . import vector | |
| from . import data | |
| from . import utils | |