0ba6ff7ff51070ba134f001ad08a86cb1d20962b,tgen/tfclassif.py,RerankingClassifier,_init_training,#RerankingClassifier#Any#Any#Any#,301

Before Change


            log_info("Reading DAs from " + das + "...")
            das = read_das(das)
        if not isinstance(trees, list):
            log_info("Reading t-trees from " + trees + "...")
            ttree_doc = read_ttrees(trees)
            if self.mode == "tokens":
                tokens = tokens_from_doc(ttree_doc, self.language, self.selector)
                trees = self._tokens_to_flat_trees(tokens)

After Change


        if not isinstance(das, list):
            log_info("Reading DAs from " + das + "...")
            das = read_das(das)
        if not isinstance(trees, list):
            log_info("Reading t-trees/tokens from " + trees + "...")
            trees = read_trees_or_tokens(trees, self.mode, self.language, self.selector)

        if self.mode in ["tokens", "tagged_lemmas"]:
            trees = self._tokens_to_flat_trees(trees, use_tags=self.mode == "tagged_lemmas")

        // make training data smaller if necessary
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: UFAL-DSG/tgen
Commit Name: 0ba6ff7ff51070ba134f001ad08a86cb1d20962b
Time: 2019-06-18
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/tfclassif.py
Class Name: RerankingClassifier
Method Name: _init_training


Project Name: UFAL-DSG/tgen
Commit Name: 3cfbea39cfcb84ba200d9cb98b209204847499ad
Time: 2016-01-19
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/seq2seq.py
Class Name: Seq2SeqGen
Method Name: _init_training


Project Name: UFAL-DSG/tgen
Commit Name: aeae19c9eb6e2b5145d915c45d7cf665aaefd095
Time: 2016-02-08
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/seq2seq.py
Class Name: Seq2SeqGen
Method Name: train