mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 02:16:32 +03:00
* Add cluster=0 by default in init_model
This commit is contained in:
parent
ed8e8c3bd0
commit
4489d87550
|
@ -50,6 +50,8 @@ def _read_clusters(loc):
|
||||||
# unreliable.
|
# unreliable.
|
||||||
if int(freq) >= 3:
|
if int(freq) >= 3:
|
||||||
clusters[word] = cluster
|
clusters[word] = cluster
|
||||||
|
else:
|
||||||
|
clusters[word] = '0'
|
||||||
return clusters
|
return clusters
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user