def METHOD_NAME(
    cls,
    path: Union[str, pathlib.Path, TextIO],
    *,
    path_to_numeric_triples: Union[None, str, pathlib.Path, TextIO] = None,
    **kwargs,
) -> "TriplesNumericLiteralsFactory":  # noqa: D102
    if path_to_numeric_triples is None:
        raise ValueError(f"{cls.__name__} requires path_to_numeric_triples.")
    numeric_triples = load_triples(path_to_numeric_triples)
    triples = load_triples(path)
    return cls.from_labeled_triples(triples=triples, numeric_triples=numeric_triples, **kwargs)