Sem-nCG / type_aliases.py
nbansal's picture
Added SemNCG metric
a54024a
raw
history blame
362 Bytes
from typing import List, Union, Tuple
from numpy.typing import NDArray
NumSentencesType = Union[List[int], List[List[int]]]
EmbeddingSlicesType = Union[List[NDArray], List[List[NDArray]]]
DEVICE_TYPE = Union[bool, str, int, List[Union[str, int]]]
ENCODER_DEVICE_TYPE = Union[str, int, List[Union[str, int]]]
DOCUMENT_TYPE = Union[List[str], List[List[str]]]