Add docstring for Trainer class.

This commit is contained in:
Matthew Honnibal 2016-10-12 14:26:02 +02:00
parent 847a4a4182
commit ba5e048502
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ from .scorer import Scorer
class Trainer(object): class Trainer(object):
'''Manage training of an NLP pipeline.'''
def __init__(self, nlp, gold_tuples): def __init__(self, nlp, gold_tuples):
self.nlp = nlp self.nlp = nlp
self.gold_tuples = gold_tuples self.gold_tuples = gold_tuples