Skip to content

Commit

Permalink
docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCatt91 committed Sep 28, 2023
1 parent e6221ee commit e8c9c6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions besskge/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def from_dataframe(
head_column: Union[int, str],
relation_column: Union[int, str],
tail_column: Union[int, str],
entity_types: Optional[Union["pd.Series[str]", Dict[str, str]]] = None,
entity_types: Optional[Union[pd.Series, Dict[str, str]]] = None, # type: ignore
split: Tuple[float, float, float] = (0.7, 0.15, 0.15),
seed: int = 1234,
) -> "KGDataset":
Expand All @@ -157,7 +157,7 @@ def from_dataframe(
Name of the DataFrame column storing tail entities
:param entity_types:
If entities have types, dictionary or pandas Series of mappings
entity label -> entity type.
entity label -> entity type (as strings).
:param split:
Tuple to set the train/validation/test split.
Only used if no pre-defined dataset split is specified,
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable", None),
"pandas": ("http://pandas.pydata.org/pandas-docs/dev", None),
"torch": ("https://pytorch.org/docs/stable", None),
"rtd": ("https://docs.readthedocs.io/en/stable/", None),
"sphinx": ("https://www.sphinx-doc.org/en/master/", None),
Expand Down

0 comments on commit e8c9c6e

Please sign in to comment.