def __init__(self, nersettings):
        """Initialize a new NerTrainer.
        
        Parameters
        ----------
        nersettings: module
            NER settings module.
        """
        self.settings = nersettings
        self.fex = FeatureExtractor(nersettings)
        self.trainer = CrfsuiteTrainer(algorithm=nersettings.CRFSUITE_ALGORITHM,
                                       c2=nersettings.CRFSUITE_C2)
def __init__ ( self , nersettings ) : self . settings = nersettings self . fex = FeatureExtractor ( nersettings ) self . trainer = CrfsuiteTrainer ( algorithm = nersettings . CRFSUITE_ALGORITHM , c2 = nersettings . CRFSUITE_C2 )
Initialize a new NerTrainer.
        
        Parameters
        ----------
        nersettings: module
            NER settings module.