Spaces:
Runtime error
Runtime error
Download type_aliases.py from BridgeAI-Lab/SemF1: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/BridgeAI-Lab/SemF1/resolve/main/type_aliases.py
- Command line
-
hf download hf://spaces/BridgeAI-Lab/SemF1/type_aliases.py
-
curl -L -o type_aliases.py https://huggingface.co/spaces/BridgeAI-Lab/SemF1/resolve/main/type_aliases.py
429 Bytes
| from typing import List, Union | |
| from numpy.typing import NDArray | |
| NumSentencesType = Union[List[int], List[List[int]]] | |
| EmbeddingSlicesType = Union[List[NDArray], List[List[NDArray]]] | |
| PREDICTION_TYPE = Union[List[str], List[List[str]]] | |
| REFERENCE_TYPE = Union[List[str], List[List[str]], List[List[List[str]]]] | |
| DEVICE_TYPE = Union[bool, str, int, List[Union[str, int]]] | |
| ENCODER_DEVICE_TYPE = Union[str, int, List[Union[str, int]]] | |