Skip to content

Commit

Permalink
Updates on semanticlabeling.labelinferencer
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Westphal committed Jun 21, 2024
1 parent 97f0ecd commit 49c4cf6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions semanticlabeling/labelinferencer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@

import util.graphbuilder
from semanticlabeling.labeledcolumn import LabeledColumn
from util.ontology import Ontology
from util.knowledgesource import KnowledgeSource
from util.file import InputFile


class SemanticLabelInferencer(ABC):
def __init__(self, input_file: InputFile, ontologies: List[Ontology]):
def __init__(self, input_file: InputFile, ontologies: List[KnowledgeSource]):
self.input_file = input_file
self.ontologies = ontologies

def get_labeled_columns(self) -> List[LabeledColumn]:
return self.input_file.columns

def get_graph(self) -> BankGraph:
return util.graphbuilder.build(self.input_file)
return util.graphbuilder.build(self.input_file.columns)

def print_summary(self):
pass # TODO
raise NotImplementedError()

0 comments on commit 49c4cf6

Please sign in to comment.