nltk.TransitionParser.train

TransitionParser.train(depgraphs, modelfile)[source]

:param depgraphs : list of DependencyGraph as the training data :type depgraphs : DependencyGraph :param modelfile : file name to save the trained model :type modelfile : str