Download python/tinydecide/__init__.py from TheREZOR/TinyDecide: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/TheREZOR/TinyDecide/resolve/main/python/tinydecide/__init__.py
- Command line
-
hf download hf://TheREZOR/TinyDecide/python/tinydecide/__init__.py
-
curl -L -o __init__.py https://huggingface.co/TheREZOR/TinyDecide/resolve/main/python/tinydecide/__init__.py
619 Bytes
| """TinyDecide: ask many typed questions about one message, get calibrated probabilities in one pass. | |
| from tinydecide import TinyDecide | |
| model = TinyDecide.load("path/to/TinyDecide") # or TinyDecide.from_pretrained() | |
| r = model.answer("Book a table for 4 on Friday at 7:30", | |
| [{"type": "span", "text": "Extract the time."}]) | |
| r["answers"][0]["text"] # "7:30" | |
| """ | |
| from .corrections import make_protos | |
| from .engine import TinyDecide, WordPiece, encode_request | |
| __all__ = ["TinyDecide", "WordPiece", "encode_request", "make_protos"] | |
| __version__ = "0.1.0" | |