Text summarization using n_gram (how to write function to score the sentence)

前端 未结 0 1833
滥情空心
滥情空心 2021-01-21 04:32

I have the code for generating n_gram as follow:

import nltk
from nltk.util import ngrams

def extract_ngrams(data, num):
    n_grams = ngrams(nltk.word_tokenize(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题