def synset_count(sent_list, lang='por', pos='NOUN'):
    i = 0
    for spacy_doc in nlp.pipe(sent_list):
        for token in spacy_doc:
            if (token.pos_ == pos):
                i += len(wn.synsets(token.text, lang=lang))
    return (i, (i / len(sent_list)))
def synset_count(sent_list, lang='por', pos='NOUN'):
    i = 0
    for spacy_doc in nlp.pipe(sent_list):
        for token in spacy_doc:
            if (token.pos_ == pos):
                i += len(wn.synsets(token.text, lang=lang))
    return (i, (i / len(sent_list)))