Closed liuvic closed 2 years ago
I do not know why does the algorithm filter out the verbs?
def limit_keyphrases (json_iter, phrase_limit=10): ..... for rl in lex: if rl.pos[0] != "v": if (used > phrase_limit) or (rl.rank < rank_thresh): return
Check the v2.0.0 release, where that can be parameterized by updating the TextRank.pos_kept list.
TextRank.pos_kept
I do not know why does the algorithm filter out the verbs?
def limit_keyphrases (json_iter, phrase_limit=10): ..... for rl in lex: if rl.pos[0] != "v": if (used > phrase_limit) or (rl.rank < rank_thresh): return