2016-07-17 2 views
0

내 Mac에서는 기본 NLTK를 설치하고 nltk.download()을 입력하면 정상적으로 작동합니다. 그것은 팝업 창을줬고, 거기에서 매끄럽게 항해하고 있었다.NLTK의 전체 무료 리소스는 어떻게 다운로드합니까?

이제 제거 서버 (쉘이있는 Linux VPS)에 문제가 있습니다. Python 2와 Python 3에 nltk를 추가하고 서버에서 nltk.download()을 실행했습니다. 후자는 나에게 체크 박스의 기능이없는 ASCII 기술을 주었다 :

Python 3.4.2 (default, Oct 8 2014, 10:45:20) [GCC 4.9.1] on linux 
Type "help", "copyright", "credits" or "license" for more 
information. 

>>> import nltk 

>>> nltk.download() NLTK Downloader 

--------------------------------------------------------------------------- 
    d) Download l) List u) Update c) Config h) Help q)   
Quit 

--------------------------------------------------------------------------- Downloader> h 



Commands: d) Download a package or collection  u) Update out of 
date packages l) List packages & collections   h) Help c) 

View & Modify Configuration   q) Quit 



--------------------------------------------------------------------------- 

    d) Download l) List u) Update c) Config h) Help q) Quit 

--------------------------------------------------------------------------- Downloader> s Command 's' unrecognized 

--------------------------------------------------------------------------- 

    d) Download l) List u) Update c) Config h) Help q) Quit 

--------------------------------------------------------------------------- Downloader> a Command 'a' unrecognized 



--------------------------------------------------------------------------- 

    d) Download l) List u) Update c) Config h) Help q) 
Quit 

--------------------------------------------------------------------- 
------ Downloader> d 


Download which package (l=list; x=cancel)? Identifier> l Packages: 
[ ] abc................. Australian Broadcasting Commission 2006 [ ] 
alpino.............. Alpino Dutch Treebank [ ] 
averaged_perceptron_tagger Averaged Perceptron Tagger [ ] 
basque_grammars..... Grammars for Basque [ ] biocreative_ppi..... 
BioCreAtIvE (Critical Assessment of Information 
          Extraction Systems in Biology) [ ] 
bllip_wsj_no_aux.... BLLIP Parser: WSJ Model [ ] 
book_grammars....... Grammars from NLTK Book [ ] 
brown_tei........... Brown Corpus (TEI XML Version) [ ] 
cess_cat............ CESS-CAT Treebank [ ] cess_esp............ 
CESS-ESP Treebank [ ] chat80.............. Chat-80 Data Files [ ] 
city_database....... City Database [ ] cmudict............ The 
Carnegie Mellon Pronouncing Dictionary (0.6) [ ] 
comparative_sentences Comparative Sentence Dataset [ ] 
comtrans............ ComTrans Corpus Sample [ ] conll2000........... 
CONLL 2000 Chunking Corpus [ ] conll2002........... CONLL 2002 Named 
Entity Recognition Corpus [ ] conll2007........... Dependency 
Treebanks from CoNLL 2007 (Catalan 
          and Basque Subset) 

나는 다른 언어가 필요 없다는 것을 알고있다. 나는 그들 중 몇 명을 알고 있지만 부분적 숙달을하고있다.

https://pythonprogramming.net/wordnet-nltk-tutorial/에서 논의 된대로 NLTK 데모를 사용하고 싶습니다. 그것은 갈색과 아마 다른 패키지를 사용합니다; 하지만 내 주요 목표의 일부는 단어 사이의 거리를 계산할 수 있어야합니다.

+0

직선입니까? 또한 포맷팅에 최선을 다했지만 터미널에서 복사하여 붙여 넣은 다음'{}'버튼이나 Ctrl-K를 사용하여 코드 블록 형식을 적용하는 것이 좋습니다. – jonrsharpe

답변

1

시도해 보셨습니까?

python -m nltk.downloader all 

이 로컬을 가지고 있다면, 서버에 컴퓨터에서 업로드가 아니라 다운로더 헤드리스를 실행하려고 쉽게되지 않을 것 from the documentation

관련 문제