Skip to content

Commit

Permalink
fix missing abstract methods in entity linking sklearn (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssarah authored Nov 29, 2023
1 parent e846ef5 commit 55ba0ce
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion kgentitylinkingsklearn/entity_linking_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Blue Brain Nexus Forge. If not, see <https://choosealicense.com/licenses/lgpl-3.0/>.
from pathlib import Path
from typing import Any, Dict, List, Callable, Optional, Tuple
from typing import Any, Dict, List, Callable, Optional, Tuple, Union

from kgentitylinkingsklearn import EntityLinkerServiceSkLearn
from kgforge.core.commons.actions import LazyAction
Expand All @@ -23,6 +23,15 @@

class EntityLinkerSkLearn(EntityLinker):

@staticmethod
def _service_from_web_service(endpoint: str, targets: Dict[str, Union[str, Dict]]) -> Any:
pass

@staticmethod
def _service_from_store(store: 'Store', targets: Dict[str, Union[str, Dict]],
**store_config) -> Any:
pass

def __init__(self, source: str, targets: List[Dict[str, Any]], result_resource_mapping: str,
**source_config) -> None:
super().__init__(source, targets, result_resource_mapping, **source_config)
Expand Down

0 comments on commit 55ba0ce

Please sign in to comment.