質問するログイン新規登録

質問編集履歴

1

codeの表記を変更しました。

2018/06/20 06:56

投稿

YuheiFujioka
YuheiFujioka

スコア17

title CHANGED
File without changes
body CHANGED
@@ -4,7 +4,8 @@
4
4
  リファレンス : https://radimrehurek.com/gensim/models/tfidfmodel.html
5
5
 
6
6
 
7
- ''''''''''''''''''''''''''''''''''''''''''
7
+ ```python3
8
+
8
9
  #解析対象の文章
9
10
  corpus = [
10
11
  "The elephant sneezed at the sight of potatoes.",
@@ -75,7 +76,9 @@
75
76
 
76
77
  print(tf_idf_gensim(corpus))
77
78
 
79
+ ```
78
80
 
81
+
79
82
  ------出力結果------------------------------
80
83
  dictionary : [['the', 'eleph', 'sneez', 'at', 'the', 'sight', 'of', 'potato'], ['bat', 'can', 'see', 'via', 'echoloc', 'see', 'the', 'bat', 'sight', 'sneez'], ['wonder', 'she', 'open', 'the', 'door', 'to', 'the', 'studio']]
81
84