56853f351b13e6c806902b02d5ca23e8836028af,estnltk/estner/crfsuiteutil.py,Trainer,train,#Trainer#Any#Any#,29

Before Change


            The serialized binary of the model.
        """
        nerdocs = self.extract_features(docs)
        trainer = pycrfsuite.Trainer()
        for doc in nerdocs:
            for snt in doc.snts:
                xseq = [t.feature_list() for t in snt]
                yseq = [t.label for t in snt]

After Change


            The fielname where to save the model.
        """

        trainer = pycrfsuite.Trainer(algorithm=self.algorithm, 
                                     params={"c2": self.c2},
                                     verbose=self.verbose)

        for doc in nerdocs:
            for snt in doc.snts:
                xseq = [t.feature_list() for t in snt]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: estnltk/estnltk
Commit Name: 56853f351b13e6c806902b02d5ca23e8836028af
Time: 2014-12-16
Author: alex.tk.fb@gmail.com
File Name: estnltk/estner/crfsuiteutil.py
Class Name: Trainer
Method Name: train


Project Name: snorkel-team/snorkel
Commit Name: 3d230b6c40f4bacaa95ee320698af7fb7c7c0a44
Time: 2019-08-13
Author: hancock.braden@gmail.com
File Name: test/classification/training/test_trainer.py
Class Name: TrainerTest
Method Name: test_warmup


Project Name: snorkel-team/snorkel
Commit Name: 3d230b6c40f4bacaa95ee320698af7fb7c7c0a44
Time: 2019-08-13
Author: hancock.braden@gmail.com
File Name: test/classification/training/test_trainer.py
Class Name: TrainerTest
Method Name: test_checkpointer_init