Skip to content

Commit

Permalink
fixes #73
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Mar 29, 2024
1 parent c129bc8 commit bd167b5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions geograpy/geograpy_nltk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python3
# converted to python script 2024-03-29
import nltk
def main():
nltk.downloader.download('maxent_ne_chunker')
nltk.downloader.download('words')
nltk.downloader.download('treebank')
nltk.downloader.download('maxent_treebank_pos_tagger')
nltk.downloader.download('punkt')
# since 2020-09
nltk.downloader.download('averaged_perceptron_tagger')

if __name__ == "__main__":
main()
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ test = [
]

[project.scripts]
geograpy = "geograpy.locator:main"
geograpy = "geograpy.locate:main"
geograpy-nltk = "geograpy.geograpy_nltk:main"

[project.data-files."geograpy/data"]
include = ["*.csv"]

0 comments on commit bd167b5

Please sign in to comment.