setting up python env, download word data
This commit is contained in:
parent
a4a14828e8
commit
e9e750da3e
5 changed files with 324 additions and 0 deletions
18
scripts/download_data.py
Normal file
18
scripts/download_data.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import nltk
|
||||
|
||||
|
||||
def main():
|
||||
print("Downloading WordNet...")
|
||||
nltk.download("wordnet")
|
||||
|
||||
print("Downloading OMW 1.4...")
|
||||
nltk.download("omw-1.4")
|
||||
|
||||
print("Downloading WordNet IC...")
|
||||
nltk.download("wordnet_ic")
|
||||
|
||||
print("Done.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
1
scripts/requirements.txt
Normal file
1
scripts/requirements.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
nltk>=3.8
|
||||
Loading…
Add table
Add a link
Reference in a new issue