Exemplo n.º 1
0
 def test_summarize_file_pagerank_list(self):
     self.assertEqual(pytextrank.summarize_file(self.file_name), self.expected_output_pagerank_list)
Exemplo n.º 2
0
 def test_summarize_file_hits_hubs(self):
     self.assertEqual(pytextrank.summarize_file(self.file_name, method='hits_hubs', join=True), self.expected_output_hits_hubs)
Exemplo n.º 3
0
 def test_summarize_file_pagerank(self):
     self.assertEqual(pytextrank.summarize_file(self.file_name, join=True), self.expected_output_pagerank)