adwaitsharma / voiceid

Automatically exported from code.google.com/p/voiceid
0 stars 0 forks source link

get_cluster() arguments #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
I am using windows 7. I followed your library through but when I reached the # 
print the clusters (one for every speaker) and relative speakers' names; I get 
the following error and can’t figure out which two arguments. Any advice?
for c in v.get_cluster():
    cluster = v.get_cluster(c)
    print cluster
    cluster.print_segments()
    print

Traceback (most recent call last):
  File "<pyshell#24>", line 1, in <module>
    for c in v.get_cluster():
TypeError: get_cluster() takes exactly 2 arguments (1 given)

Original issue reported on code.google.com by kaggsmag...@gmail.com on 26 Jan 2014 at 1:26

GoogleCodeExporter commented 8 years ago
hìHi,
you miss a "s" in the for statement.
This should work

for c in v.get_clusters():
        cluster = v.get_cluster(c)
        print cluster
        cluster.print_segments()
        print

Original comment by maurome...@gmail.com on 26 Jan 2014 at 2:26

GoogleCodeExporter commented 8 years ago

Original comment by maurome...@gmail.com on 15 Feb 2014 at 4:23