0c667533ccbb8bb3be0f24ba5c9683fe8de99205,nltk/tokenize/sonority_sequencing.py,SyllableTokenizer,tokenize,#SyllableTokenizer#Any#,108

Before Change



        syllable_list = []
        syllable = self.syllables_values[0][0]  // start syllable with first phoneme
        for trigram in zip(*[self.syllables_values[i:] for i in range(3)]):
            prev_value = trigram[0][1]  // sonority of previous phoneme
            focal_value = trigram[1][1]  // sonority of focal phoneme
            next_value = trigram[2][1]  // sonority of following phoneme

After Change



        syllable_list = []
        syllable = syllables_values[0][0]  // start syllable with first phoneme
        for trigram in ngrams(syllables_values, n=3):
            phonemes, values = zip(*trigram)
            // Sonority of previous, focal and following phoneme
            prev_value, focal_value, next_value = values
            // Focal phoneme.
            focal_phoneme = phonemes[1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nltk/nltk
Commit Name: 0c667533ccbb8bb3be0f24ba5c9683fe8de99205
Time: 2019-01-07
Author: alvations@gmail.com
File Name: nltk/tokenize/sonority_sequencing.py
Class Name: SyllableTokenizer
Method Name: tokenize


Project Name: nltk/nltk
Commit Name: 0f36f4aae8fbdd387a34a88d5e270716d987559e
Time: 2019-09-02
Author: alvations@gmail.com
File Name: nltk/sentiment/vader.py
Class Name: SentimentIntensityAnalyzer
Method Name: _in_spite_of_check


Project Name: nltk/nltk
Commit Name: 0f36f4aae8fbdd387a34a88d5e270716d987559e
Time: 2019-09-02
Author: alvations@gmail.com
File Name: nltk/sentiment/vader.py
Class Name: SentimentIntensityAnalyzer
Method Name: _only_if_check