Download compat.py from shomez/tasksource-deberta-small-long-nli: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/shomez/tasksource-deberta-small-long-nli/resolve/main/compat.py
- Command line
-
hf download hf://shomez/tasksource-deberta-small-long-nli/compat.py
-
curl -L -o compat.py https://huggingface.co/shomez/tasksource-deberta-small-long-nli/resolve/main/compat.py
321 Bytes
| from .core import * | |
| from .codec import * | |
| from typing import Any, Union | |
| def ToASCII(label: str) -> bytes: | |
| return encode(label) | |
| def ToUnicode(label: Union[bytes, bytearray]) -> str: | |
| return decode(label) | |
| def nameprep(s: Any) -> None: | |
| raise NotImplementedError('IDNA 2008 does not utilise nameprep protocol') | |