1
2
3
4
5
6
7
8
9
10
11 """
12 Interactive NLTK Applications:
13
14 chartparser: Chart Parser
15 chunkparser: Regular-Expression Chunk Parser
16 collocations: Find collocations in text
17 concordance: Part-of-speech concordancer
18 nemo: Finding (and Replacing) Nemo regular expression tool
19 rdparser: Recursive Descent Parser
20 srparser: Shift-Reduce Parser
21 wordnet: WordNet Browser
22 """
23
24
25
26 try:
27 import Tkinter
28 except ImportError:
29 import warnings
30 warnings.warn("nltk.app package not loaded "
31 "(please install Tkinter library).")
32 else:
33 from chartparser_app import app as chartparser
34 from chunkparser_app import app as chunkparser
35 from collocations_app import app as collocations
36 from concordance_app import app as concordance
37 from nemo_app import app as nemo
38 from rdparser_app import app as rdparser
39 from srparser_app import app as srparser
40 from wordnet_app import app as wordnet
41
42 try:
43 import pylab
44 except ImportError:
45 import warnings
46 warnings.warn("nltk.app.wordfreq not loaded "
47 "(requires the pylab library).")
48 else:
49 from wordfreq_app import app as wordfreq
50
51
52 try:
53 import wx
54 except ImportError:
55 pass
56 else:
57 try:
58 from wxwordnet_app import app as wxwordnet
59 except ImportError:
60 pass
61