Download parser.py from YSRABD/combinatorics-calculator-seq-2-seq: direct link, hf CLI and curl.
- Browser
- Download file 615 Bytes
-
https://huggingface.co/spaces/YSRABD/combinatorics-calculator-seq-2-seq/resolve/main/parser.py
- Command line
-
hf download hf://spaces/YSRABD/combinatorics-calculator-seq-2-seq/parser.py
-
curl -L -o parser.py https://huggingface.co/spaces/YSRABD/combinatorics-calculator-seq-2-seq/resolve/main/parser.py
615 Bytes
| from schema import ProblemObject | |
| def parse(question: str): | |
| return ProblemObject( | |
| schemaVersion="1.0", | |
| status="complete", | |
| confidence=1.0, | |
| domain="combinatorics", | |
| problemType="combination", | |
| intent="choose", | |
| entities={ | |
| "object": "students" | |
| }, | |
| parameters={ | |
| "n": 10, | |
| "r": 3 | |
| }, | |
| constraints={ | |
| "orderMatters": False | |
| }, | |
| missing=[], | |
| ambiguities=[], | |
| diagnostics=[], | |
| metadata={ | |
| "engine": "dummy-parser" | |
| } | |
| ) | |