nltk.NaiveBayesDependencyScorer.train¶
-
NaiveBayesDependencyScorer.
train
(graphs)[source]¶ Trains a
NaiveBayesClassifier
using the edges present in graphs list as positive examples, the edges not present as negative examples. Uses a feature vector of head-word, head-tag, child-word, and child-tag.Parameters: graphs (list(DependencyGraph)) – A list of dependency graphs to train the scorer.