e8852f5ea7b3b5d222f0d6140f9375bd3826d2e4,underthesea/word_sent/model.py,CRFModel,predict,#CRFModel#,19

Before Change


            tokenized_sentence += " "
        format_sentence = ""
        for word in tokenized_sentence.split("_"):
            if word not in self.punctuation:
                format_sentence += word[: -1] + "_"
        tokenized_sentence = format_sentence[:-1]
        return tokenized_sentence

After Change


        
        tokens = Transformer.transform(sentence)
        tags = self.model.tag(tokens)
        tokens = [item[0] for item in tokens]
        output = []
        for tag, token in zip(tags, tokens):
            if tag == "I_W":
               output[-1] = output[-1] + u" " + token
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: undertheseanlp/underthesea
Commit Name: e8852f5ea7b3b5d222f0d6140f9375bd3826d2e4
Time: 2017-05-08
Author: brother.rain.1024@gmail.com
File Name: underthesea/word_sent/model.py
Class Name: CRFModel
Method Name: predict


Project Name: commonsense/conceptnet5
Commit Name: de83e84dd87aef0dea564de76c648c72d0f6b5a1
Time: 2017-04-05
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/analogy.py
Class Name:
Method Name: eval_google_analogies


Project Name: ilastik/ilastik
Commit Name: 219459f15476426276e24329cdb6f091b5f7cf41
Time: 2019-06-26
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionSerializer.py
Class Name: DataSelectionSerializer
Method Name: importStackAsLocalDataset