'A language model using a classifier (e.g., SLP, SVM) trained on morphology and context.'

def __init__(self, path='', classifier=None, known=set(), unknown=set()):

    try:
        from pattern.vector import Classifier
        from pattern.vector import Perceptron
    except ImportError:
        sys.path.insert(0, os.path.join(MODULE, '..'))
        from vector import Classifier
        from vector import Perceptron
    self._path = path
    self._classifier = (Classifier.load(path) if path else (classifier or Perceptron()))
    self.unknown = (unknown | self._classifier._data.get('model_unknown', set()))
    self.known = known
