Is there a way to check whether the cili has already been downloaded? #172
-
I'm about to deploy my solution and I don't want it to download files already downloaded every time it starts. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Nevermind, I found the answer! |
Beta Was this translation helpful? Give feedback.
-
@francis-dion that is actually not an answer. You've discovered a missing feature of Wn, but for now this might work: >>> import wn
>>> wn.ili('i1').status
'active' The status of an ILI is Also apparently missing is the ability to remove CILI from the database: >>> wn.download('cili')
[...]
>>> wn.remove('cili')
[...]
wn.Error: no lexicon found with lang=None and lexicon='cili' |
Beta Was this translation helpful? Give feedback.
Nevermind, I found the answer!
All I had to do is check the wn.projects().
if 'cili' not in [proj['id'] for proj in wn.projects()]: