nlplot
nlplot copied to clipboard
ビルド実行時にエラーが出る
ビルド実行時にエラーが出る
ビルドを実行すると下記のようなエラーが出てしまいます。その他ビジュアライズは正常に動きますが、ビルドが出来ないため共起ネットワークとサンバーストが描けませんでした。
npt.build_graph(
stopwords=stopwords,
min_edge_frequency=10
)
83 if (n_communities < 1) or (n_communities > N):
84 raise ValueError(
---> 85 f"n_communities must be between 1 and {N}. Got {n_communities}"
86 )
87
ValueError: n_communities must be between 1 and 0. Got 1
@hanaseleb 連絡が大変遅くなり申し訳ないですmm
エラーメッセージを見ると、n_communitiesの値が小さくなりすぎている可能性があるので、 min_edge_frequency の値を小さくして試していただけますでしょうか?