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

first draft

parent 85d8f9a7
No related branches found
No related tags found
No related merge requests found
from abc import ABCMeta, abstractmethod
from typing import List
class Publication():
def __init__(self, pmc_id, pm_id, doi, preprint_id, other_id):
self.pmc_id = pmc_id
self.pm_id = pm_id
self.doi = doi
self.preprint_id = preprint_id
self.other_id = other_id
class TextMiningService(metaclass=ABCMeta):
def __init__(self, name: str, description: str):
self.name = name
self.description = description
@abstractmethod
def getMentions(entities: List) -> List[Publication]:
pass
@abstractmethod
def getCoOccurrences(entity: str) -> List[str]:
pass
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