LiteralModel

class LiteralModel(triples_factory: TriplesNumericLiteralsFactory, interaction: str | Interaction[Tensor, Tensor, Tensor] | type[Interaction[Tensor, Tensor, Tensor]] | None, entity_representations: str | Representation | type[Representation] | None | Sequence[str | Representation | type[Representation] | None] = None, entity_representations_kwargs: Mapping[str, Any] | None | Sequence[Mapping[str, Any] | None] = None, combination: str | Combination | type[Combination] | None = None, combination_kwargs: Mapping[str, Any] | None = None, **kwargs)[源代码]

基础类: ERModel[tuple[Tensor, Tensor], Tensor, tuple[Tensor, Tensor]]

使用来自pykeen.nn.combinations组合的实体字面量模型的基类。

初始化模型。

Parameters: