Types used for offline translation.
Classes
|
Matrix of ID translation components returned by fetchers. |
Bases: Generic[SourceType]
Matrix of ID translation components returned by fetchers.
Source from which translations were retrieved.
Matrix of shape N x M where N is the number of IDs returned and M is the length of placeholders.
Try to make in instance from arbitrary input data.
source – Source label for the translations.
data – Some data to convert to a PlaceholderTranslations instance.
A new PlaceholderTranslations instance.
TypeError – If data cannot be converted.
Create a dict representation of the translations.
Create a nested dict representation of the translations.
Create instance from a pandas DataFrame.
Create instance from a dict.