forked from nltk/nltk.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.html
160 lines (145 loc) · 8.68 KB
/
install.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Installing NLTK — NLTK 3.0 documentation</title>
<link rel="stylesheet" href="_static/agogo.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '3.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="NLTK 3.0 documentation" href="index.html" />
<link rel="next" title="Installing NLTK Data" href="data.html" />
<link rel="prev" title="NLTK News" href="news.html" />
</head>
<body>
<div class="header-wrapper">
<div class="header">
<div class="headertitle"><a
href="index.html">NLTK 3.0 documentation</a></div>
<div class="rel">
<a href="news.html" title="NLTK News"
accesskey="P">previous</a> |
<a href="data.html" title="Installing NLTK Data"
accesskey="N">next</a> |
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |
<a href="genindex.html" title="General Index"
accesskey="I">index</a>
</div>
</div>
</div>
<div class="content-wrapper">
<div class="content">
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="installing-nltk">
<h1>Installing NLTK<a class="headerlink" href="#installing-nltk" title="Permalink to this headline">¶</a></h1>
<p>NLTK requires Python versions 2.6-2.7.
(A version supporting Python 3 is available at <a class="reference external" href="http://nltk.org/nltk3-alpha/">http://nltk.org/nltk3-alpha/</a>).</p>
<div class="section" id="mac-unix">
<h2>Mac/Unix<a class="headerlink" href="#mac-unix" title="Permalink to this headline">¶</a></h2>
<ol class="arabic simple">
<li>Install Setuptools: <a class="reference external" href="http://pypi.python.org/pypi/setuptools">http://pypi.python.org/pypi/setuptools</a></li>
<li>Install Pip: run <tt class="docutils literal"><span class="pre">sudo</span> <span class="pre">easy_install</span> <span class="pre">pip</span></tt></li>
<li>Install Numpy (optional): run <tt class="docutils literal"><span class="pre">sudo</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">-U</span> <span class="pre">numpy</span></tt></li>
<li>Install PyYAML and NLTK: run <tt class="docutils literal"><span class="pre">sudo</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">-U</span> <span class="pre">pyyaml</span> <span class="pre">nltk</span></tt></li>
<li>Test installation: run <tt class="docutils literal"><span class="pre">python</span></tt> then type <tt class="docutils literal"><span class="pre">import</span> <span class="pre">nltk</span></tt></li>
</ol>
</div>
<div class="section" id="windows">
<h2>Windows<a class="headerlink" href="#windows" title="Permalink to this headline">¶</a></h2>
<p>These instructions assume that you do not already have Python installed on your machine.
If you do, you can skip to the final step and just install NLTK.</p>
<div class="section" id="bit-binary-installation">
<h3>32-bit binary installation<a class="headerlink" href="#bit-binary-installation" title="Permalink to this headline">¶</a></h3>
<ol class="arabic simple">
<li>Install Python: <a class="reference external" href="http://www.python.org/download/releases/2.7.3/">http://www.python.org/download/releases/2.7.3/</a> (avoid the 64-bit versions)</li>
<li>Install Numpy (optional): <a class="reference external" href="http://sourceforge.net/projects/numpy/files/NumPy/1.6.2/numpy-1.6.2-win32-superpack-python2.7.exe">http://sourceforge.net/projects/numpy/files/NumPy/1.6.2/numpy-1.6.2-win32-superpack-python2.7.exe</a></li>
<li>Install NLTK: <a class="reference external" href="http://pypi.python.org/pypi/nltk">http://pypi.python.org/pypi/nltk</a></li>
<li>Install PyYAML: <a class="reference external" href="http://pyyaml.org/wiki/PyYAML">http://pyyaml.org/wiki/PyYAML</a></li>
<li>Test installation: <tt class="docutils literal"><span class="pre">Start>Python27</span></tt>, then type <tt class="docutils literal"><span class="pre">import</span> <span class="pre">nltk</span></tt></li>
</ol>
</div>
<div class="section" id="source-installation-for-32-bit-or-64-bit-windows">
<h3>Source installation (for 32-bit or 64-bit Windows)<a class="headerlink" href="#source-installation-for-32-bit-or-64-bit-windows" title="Permalink to this headline">¶</a></h3>
<ol class="arabic simple">
<li>Install Python: <a class="reference external" href="http://www.python.org/download/releases/2.7.3/">http://www.python.org/download/releases/2.7.3/</a></li>
<li>Install Numpy (optional): <a class="reference external" href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy">http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy</a></li>
<li>Install Setuptools: <a class="reference external" href="http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe">http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe</a></li>
<li>Install Pip: <tt class="docutils literal"><span class="pre">Start>Run...</span> <span class="pre">c:\Python27\Scripts\easy_install</span> <span class="pre">pip</span></tt></li>
<li>Install PyYAML and NLTK: <tt class="docutils literal"><span class="pre">Start>Run...</span> <span class="pre">c:\Python27\Scripts\pip</span> <span class="pre">install</span> <span class="pre">pyyaml</span> <span class="pre">nltk</span></tt></li>
<li>Test installation: <tt class="docutils literal"><span class="pre">Start>All</span> <span class="pre">Programs>Python27>IDLE</span></tt>, then type <tt class="docutils literal"><span class="pre">import</span> <span class="pre">nltk</span></tt></li>
</ol>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sidebar">
<h3>Table Of Contents</h3>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="news.html">NLTK News</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="">Installing NLTK</a></li>
<li class="toctree-l1"><a class="reference internal" href="data.html">Installing NLTK Data</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/nltk/nltk/wiki">Wiki</a></li>
<li class="toctree-l1"><a class="reference internal" href="api/nltk.html">API</a></li>
<li class="toctree-l1"><a class="reference external" href="http://nltk.org/howto">HOWTO</a></li>
<li class="toctree-l1"><a class="reference external" href="https://github.com/nltk">NLTK Development</a></li>
<li class="toctree-l1"><a class="reference internal" href="team.html">Team NLTK</a></li>
</ul>
<h3 style="margin-top: 1.5em;">Search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<div class="clearer"></div>
</div>
</div>
<div class="footer-wrapper">
<div class="footer">
<div class="left">
<a href="news.html" title="NLTK News"
>previous</a> |
<a href="data.html" title="Installing NLTK Data"
>next</a> |
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |
<a href="genindex.html" title="General Index"
>index</a>
<br/>
<a href="_sources/install.txt"
rel="nofollow">Show Source</a>
</div>
<div class="right">
<div class="footer">
© Copyright 2013, NLTK Project.
Last updated on Nov 05, 2013.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2b3.
</div>
</div>
<div class="clearer"></div>
</div>
</div>
</body>
</html>