Contents:
from abc import ABC from abc import abstractmethod from typing import List [docs] class Scorer(ABC): """Abstract class for scorers to compute feature values""" @abstractmethod [docs] def score(self, tokens: List[str]) -> float: return NotImplemented