skillner.core.Candidate#

class skillner.core.Candidate(window: slice, concept_id: str)[source]#

Candidate class to store results of matching on a query.

Parameters:
window: slice

A slice the identifies candidate in Sentence.

concept_id: str

The id of the concept identified by candidate in the knowledge base.

Attributes:
window: slice

A slice that identifies candidate in sentence.

start: int

The index of the first word in candidate.

end: int

The index of the last word in candidate.

__init__(window: slice, concept_id: str) None[source]#

Methods

__init__(window, concept_id)

Attributes

start

stop