私はPython 2.7を持っています。これは私のコードです。実行すると、このエラーが発生します: 'continue'が正しくループしていません。 「continue」はループ内にあるはずですが、私はifの中で使っています。 from numpy import zeros
from scipy.linalg import svd
from math import log
from nump
私は潜在意味解析に取り組んでいます.2つのドキュメントから類似性を得ようとしています。私は、Pythonの潜在意味解析の私のコードを実行し、私はそれを実行したときに私が取得: Here are the singular values
[ 0.7376057 0.4596623 0.25422212]
Here are the first 3 columns of the U matrix
[
LSAfunのgenericSummary関数を使用します。ここにドイツのサンプルテキストがあります。 library("LSAfun")
text = " Gegen die Firma wurde während der letzten Woche ein Zwangsvollstreckungsverfahren eingeleitet. Darüber witzeln die Konku