SVM

Module for code dealing with the classifier.

class yalign.svm.SVMClassifier(dataset, problem)

Bases: simpleai.machine_learning.models.Classifier

A Support Vector Machine classifier to classify if a sentence is a translation of another sentence.

classify(sentence_pair)

Classify if this SentencePair sentence_pair has sentences that are translations of each other.

learn()

Train the classifier.

score(data)

The score is positive for an alignment.