Skip to content
Snippets Groups Projects
Commit 51f53c3f authored by Carlos Vega's avatar Carlos Vega
Browse files

fix default value for types

parent d172ba5c
No related branches found
No related tags found
No related merge requests found
from typing import List
from utils import uri_to_entity_code, standarise_underscored_entity_code
from .utils import uri_to_entity_code, standarise_underscored_entity_code
from interface.TextMiningService import TextMiningService
from models.publication import Publication
from models.coocurrence import CoOccurrence
......@@ -58,7 +58,10 @@ class BioKBservice(TextMiningService):
return values
def get_co_occurrences(self, entity: str, limit: int = 20, types: List[str] = []) -> List[CoOccurrence]:
def get_co_occurrences(self, entity: str, limit: int = 20, types: List[str] = None) -> List[CoOccurrence]:
if types is None:
types = []
entity_types_filter = ''
if len(types) > 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment