Spaces:
Running on Zero
Running on Zero
Download src/range_curate/models.py from Brianferrell787/range: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/spaces/Brianferrell787/range/resolve/main/src/range_curate/models.py
- Command line
-
hf download hf://spaces/Brianferrell787/range/src/range_curate/models.py
-
curl -L -o models.py https://huggingface.co/spaces/Brianferrell787/range/resolve/main/src/range_curate/models.py
1.21 kB
| """Public names for relevance inputs, decisions, and screening results.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from ._core.accelerated.compact import ( | |
| ArrowCompactFacts, | |
| CompactColumnScreenBatch, | |
| ScreeningResult, | |
| ) | |
| from ._core.models import ( | |
| Article, | |
| ArticleAdmissibilityStatus, | |
| EvidencePath, | |
| ExposureFamily, | |
| ExposureRelevanceStatus, | |
| RankedCandidate, | |
| RelevanceDecision, | |
| ) | |
| Prediction = RelevanceDecision | |
| RankedPrediction = RankedCandidate | |
| PythonScreeningBatch = CompactColumnScreenBatch | |
| ArrowScreeningBatch = ArrowCompactFacts | |
| ScreeningBatch = PythonScreeningBatch | ArrowScreeningBatch | |
| class BackendInfo: | |
| """Availability and acceleration details for one backend.""" | |
| name: str | |
| available: bool | |
| accelerated: bool | |
| detail: str | |
| __all__ = [ | |
| "ArrowScreeningBatch", | |
| "Article", | |
| "ArticleAdmissibilityStatus", | |
| "BackendInfo", | |
| "EvidencePath", | |
| "ExposureFamily", | |
| "ExposureRelevanceStatus", | |
| "Prediction", | |
| "PythonScreeningBatch", | |
| "RankedPrediction", | |
| "ScreeningBatch", | |
| "ScreeningResult", | |
| ] | |