質問編集履歴

1

図を追加しました

2020/02/14 07:45

投稿

JT2357
JT2357

スコア4

test CHANGED
File without changes
test CHANGED
@@ -6,45 +6,21 @@
6
6
 
7
7
  しかし、以下のようなエラーメッセージが出てドライブから必要なツールが使用できない状態となっています。
8
8
 
9
+ 原因や解決方法についてご教授いただけますでしょうか?
10
+
9
11
 
10
12
 
11
13
  ### 発生している問題・エラーメッセージ
12
14
 
13
15
 
14
16
 
15
- ModuleNotFoundError Traceback (most recent call last)
16
-
17
- <ipython-input-61-348ee03933bd> in <module>()
18
-
19
- 2 sys.path.append('/content/drive/My Drive/oreilly/common')
20
-
21
- 3 import numpy as np
22
-
23
- ----> 4 from common.util import preprocess, create_co_matrix, cos_similarity, most_similar, ppmi
24
-
25
- 5
26
-
27
- 6 text ='you say goodbye and i say hello.'
17
+ ![](a8eb80e2c34aa876e58cc050056aca42.png)
28
18
 
29
19
 
30
20
 
31
- ModuleNotFoundError: No module named 'common.util'
21
+ 画像のように左側四角内にcommonフォルダをインポートし、その中の.pyファイルをコードで使用したいと考えています。
32
22
 
33
-
34
-
35
- ---------------------------------------------------------------------------
36
-
37
- NOTE: If your import is failing due to a missing package, you can
38
-
39
- manually install dependencies using either !pip or !apt.
40
-
41
-
42
-
43
- To view examples of installing some common dependencies, click the
44
-
45
- "Open Examples" button below.
23
+ しかし右側四角内の通り、コードを実行するとエラーが出てしまいました。
46
-
47
- ---------------------------------------------------------------------------
48
24
 
49
25
 
50
26