def sentence_segment(doc, candidate_pos):
    """Store those words only in cadidate_pos"""
    sentences = []
    for sent in doc.sents:
        selected_words = []
        for token in sent:
            if token.pos_ in candidate_pos and token.is_stop is False and len(
                token.text) > 1:
                selected_words.append(token.text.lower())
        sentences.append(selected_words)
    return sentences
