def hypo_hyper_count(sent_list):
    hyper = []
    hypo = []
    size = len(sent_list)
    for sent in nlp.pipe(sent_list):
        ss = [my_lesk(sent, token.text) for token in sent if (token.pos_ == 'NOUN')]
        for s in ss:
            try:
                hyper.append(len(s.hypernyms()))
                hypo.append(len(s.hyponyms()))
            except AttributeError:
                continue
    h_er_sum = sum(hyper)
    h_o_sum = sum(hypo)
    return (h_er_sum, (h_er_sum / size), h_o_sum, (h_o_sum / size))
def hypo_hyper_count(sent_list):
    hyper = []
    hypo = []
    size = len(sent_list)
    for sent in nlp.pipe(sent_list):
        ss = [my_lesk(sent, token.text) for token in sent if (token.pos_ == 'NOUN')]
        for s in ss:
            try:
                hyper.append(len(s.hypernyms()))
                hypo.append(len(s.hyponyms()))
            except AttributeError:
                continue
    h_er_sum = sum(hyper)
    h_o_sum = sum(hypo)
    return (h_er_sum, (h_er_sum / size), h_o_sum, (h_o_sum / size))