parikh-et-al-and-bilstm-max-pool/modules/Utils.py
def count_corpus_tokens(self, pairs):
        """
        Examine all pairs ans extracts all tokens from both text
        and hypothesis.
        :param pairs: a list of tuples (sent1, sent2, relation) with tokenized
            sentences
        :return: a Counter of lowercase tokens
        """
        c = Counter()
        for sent1, sent2, _ in pairs:
            c.update(t.lower() for t in sent1)
            c.update(t.lower() for t in sent2)

        return c

        Examine all pairs ans extracts all tokens from both text
        and hypothesis.
        :param pairs: a list of tuples (sent1, sent2, relation) with tokenized
            sentences
        :return: a Counter of lowercase tokens
        
Examine all pairs ans extracts all tokens from both text
and hypothesis.
Examine all pairs ans extracts all tokens from both text and hypothesis .
def count_corpus_tokens(self, pairs):
        c = Counter()
        for sent1, sent2, _ in pairs:
            c.update(t.lower() for t in sent1)
            c.update(t.lower() for t in sent2)
        return c
def count_corpus_tokens ( self , pairs ) : c = Counter ( ) for sent1 , sent2 , _ in pairs : c . update ( t . lower ( ) for t in sent1 ) c . update ( t . lower ( ) for t in sent2 ) return c
Examine all pairs ans extracts all tokens from both text
and hypothesis.
Examine all pairs ans extracts all tokens from both text and hypothesis .
"""
        Examine all pairs ans extracts all tokens from both text
        and hypothesis.
        :param pairs: a list of tuples (sent1, sent2, relation) with tokenized
            sentences
        :return: a Counter of lowercase tokens
        """
a Counter of lowercase tokens
a Counter of lowercase tokens
self
pairs
a list of tuples (sent1, sent2, relation) with tokenized
sentences
a list of tuples ( sent1 sent2 relation ) with tokenized sentences