nltk package¶
Subpackages¶
- nltk.app package
- nltk.ccg package
- Submodules
- nltk.ccg.api module
- nltk.ccg.chart module
- nltk.ccg.combinator module
BackwardCombinator
DirectedBinaryCombinator
ForwardCombinator
UndirectedBinaryCombinator
UndirectedComposition
UndirectedFunctionApplication
UndirectedSubstitution
UndirectedTypeRaise
backwardBxConstraint()
backwardOnly()
backwardSxConstraint()
backwardTConstraint()
bothBackward()
bothForward()
crossedDirs()
forwardOnly()
forwardSConstraint()
forwardTConstraint()
innermostFunction()
- nltk.ccg.lexicon module
- nltk.ccg.logic module
- Module contents
- Submodules
- nltk.chat package
- nltk.chunk package
- nltk.classify package
- Submodules
- nltk.classify.api module
- nltk.classify.decisiontree module
- nltk.classify.maxent module
- Terminology: ‘feature’
BinaryMaxentFeatureEncoding
ConditionalExponentialClassifier
FunctionBackedMaxentFeatureEncoding
GISEncoding
MaxentClassifier
MaxentFeatureEncodingI
TadmEventMaxentFeatureEncoding
TadmMaxentClassifier
TypedMaxentFeatureEncoding
calculate_deltas()
calculate_empirical_fcount()
calculate_estimated_fcount()
calculate_nfmap()
demo()
load_maxent_params()
maxent_pos_tagger()
save_maxent_params()
train_maxent_classifier_with_gis()
train_maxent_classifier_with_iis()
train_maxent_classifier_with_megam()
- nltk.classify.megam module
- nltk.classify.naivebayes module
- nltk.classify.positivenaivebayes module
- nltk.classify.rte_classify module
- nltk.classify.scikitlearn module
- nltk.classify.senna module
- nltk.classify.svm module
- nltk.classify.tadm module
- nltk.classify.textcat module
- nltk.classify.util module
- nltk.classify.weka module
- Module contents
- Submodules
- nltk.cluster package
- nltk.corpus package
- nltk.draw package
- nltk.inference package
- nltk.lm package
- Submodules
- Module contents
- nltk.metrics package
- nltk.misc package
- nltk.parse package
- Submodules
- nltk.parse.api module
- nltk.parse.bllip module
- nltk.parse.chart module
AbstractChartRule
BottomUpChartParser
BottomUpLeftCornerChartParser
BottomUpPredictCombineRule
BottomUpPredictRule
CachedTopDownPredictRule
Chart
ChartParser
ChartRuleI
EdgeI
EmptyPredictRule
FilteredBottomUpPredictCombineRule
FilteredSingleEdgeFundamentalRule
FundamentalRule
LeafEdge
LeafInitRule
LeftCornerChartParser
SingleEdgeFundamentalRule
SteppingChartParser
TopDownChartParser
TopDownInitRule
TopDownPredictRule
TreeEdge
demo()
demo_grammar()
- nltk.parse.corenlp module
- nltk.parse.dependencygraph module
- nltk.parse.earleychart module
CompleteFundamentalRule
CompleterRule
EarleyChartParser
FeatureCompleteFundamentalRule
FeatureCompleterRule
FeatureEarleyChartParser
FeatureIncrementalBottomUpChartParser
FeatureIncrementalBottomUpLeftCornerChartParser
FeatureIncrementalChart
FeatureIncrementalChartParser
FeatureIncrementalTopDownChartParser
FeaturePredictorRule
FeatureScannerRule
FilteredCompleteFundamentalRule
IncrementalBottomUpChartParser
IncrementalBottomUpLeftCornerChartParser
IncrementalChart
IncrementalChartParser
IncrementalLeftCornerChartParser
IncrementalTopDownChartParser
PredictorRule
ScannerRule
demo()
- nltk.parse.evaluate module
- nltk.parse.featurechart module
FeatureBottomUpChartParser
FeatureBottomUpLeftCornerChartParser
FeatureBottomUpPredictCombineRule
FeatureBottomUpPredictRule
FeatureChart
FeatureChartParser
FeatureEmptyPredictRule
FeatureFundamentalRule
FeatureSingleEdgeFundamentalRule
FeatureTopDownChartParser
FeatureTopDownInitRule
FeatureTopDownPredictRule
FeatureTreeEdge
InstantiateVarsChart
demo()
demo_grammar()
run_profile()
- nltk.parse.generate module
- nltk.parse.malt module
- nltk.parse.nonprojectivedependencyparser module
- nltk.parse.pchart module
- nltk.parse.projectivedependencyparser module
- nltk.parse.recursivedescent module
- nltk.parse.shiftreduce module
- nltk.parse.stanford module
- nltk.parse.transitionparser module
- nltk.parse.util module
- nltk.parse.viterbi module
- Module contents
- Submodules
- nltk.sem package
- Submodules
- nltk.sem.boxer module
- nltk.sem.chat80 module
- nltk.sem.cooper_storage module
- nltk.sem.drt module
AnaphoraResolutionException
DRS
DrsDrawer
DrtAbstractVariableExpression
DrtApplicationExpression
DrtBinaryExpression
DrtBooleanExpression
DrtConcatenation
DrtConstantExpression
DrtEqualityExpression
DrtEventVariableExpression
DrtExpression
DrtFunctionVariableExpression
DrtIndividualVariableExpression
DrtLambdaExpression
DrtNegatedExpression
DrtOrExpression
DrtParser
DrtProposition
DrtTokens
DrtVariableExpression()
PossibleAntecedents
demo()
resolve_anaphora()
test_draw()
- nltk.sem.drt_glue_demo module
- nltk.sem.evaluate module
- nltk.sem.glue module
- nltk.sem.hole module
- nltk.sem.lfg module
- nltk.sem.linearlogic module
- nltk.sem.logic module
AbstractVariableExpression
AllExpression
AndExpression
AnyType
ApplicationExpression
BasicType
BinaryExpression
BooleanExpression
ComplexType
ConstantExpression
EntityType
EqualityExpression
EventType
EventVariableExpression
ExistsExpression
ExpectedMoreTokensException
Expression
FunctionVariableExpression
IffExpression
IllegalTypeException
ImpExpression
InconsistentTypeHierarchyException
IndividualVariableExpression
IotaExpression
LambdaExpression
LogicParser
LogicalExpressionException
NegatedExpression
OrExpression
QuantifiedExpression
SubstituteBindingsI
Tokens
TruthValueType
Type
TypeException
TypeResolutionException
UnexpectedTokenException
Variable
VariableBinderExpression
VariableExpression()
binding_ops()
boolean_ops()
demo()
demoException()
demo_errors()
equality_preds()
is_eventvar()
is_funcvar()
is_indvar()
printtype()
read_logic()
read_type()
skolem_function()
typecheck()
unique_variable()
- nltk.sem.relextract module
- nltk.sem.skolemize module
- nltk.sem.util module
- Module contents
- Submodules
- nltk.sentiment package
- nltk.stem package
- Submodules
- Module contents
- nltk.tag package
- Submodules
- nltk.tag.api module
- nltk.tag.brill module
- nltk.tag.brill_trainer module
- nltk.tag.crf module
- nltk.tag.hmm module
- nltk.tag.hunpos module
- nltk.tag.mapping module
- nltk.tag.perceptron module
- nltk.tag.senna module
- nltk.tag.sequential module
- nltk.tag.stanford module
- nltk.tag.tnt module
- nltk.tag.util module
- Module contents
- Submodules
- nltk.tbl package
- Submodules
- nltk.tbl.api module
- nltk.tbl.demo module
corpus_size()
demo()
demo_error_analysis()
demo_generated_templates()
demo_high_accuracy_rules()
demo_learning_curve()
demo_multifeature_template()
demo_multiposition_feature()
demo_repr_rule_format()
demo_serialize_tagger()
demo_str_rule_format()
demo_template_statistics()
demo_verbose_rule_format()
postag()
- nltk.tbl.erroranalysis module
- nltk.tbl.feature module
- nltk.tbl.rule module
- nltk.tbl.template module
- Module contents
- Submodules
- nltk.tokenize package
- Submodules
- nltk.tokenize.api module
- nltk.tokenize.casual module
- nltk.tokenize.destructive module
- nltk.tokenize.legality_principle module
- nltk.tokenize.mwe module
- nltk.tokenize.nist module
- nltk.tokenize.punkt module
- nltk.tokenize.regexp module
- nltk.tokenize.repp module
- nltk.tokenize.sexpr module
- nltk.tokenize.simple module
- nltk.tokenize.sonority_sequencing module
- nltk.tokenize.stanford module
- nltk.tokenize.stanford_segmenter module
- nltk.tokenize.texttiling module
- nltk.tokenize.toktok module
- nltk.tokenize.treebank module
- nltk.tokenize.util module
- Module contents
- Submodules
- nltk.translate package
- Submodules
- nltk.translate.api module
- nltk.translate.bleu_score module
- nltk.translate.chrf_score module
- nltk.translate.gale_church module
- nltk.translate.gdfa module
- nltk.translate.gleu_score module
- nltk.translate.ibm1 module
- nltk.translate.ibm2 module
- nltk.translate.ibm3 module
- nltk.translate.ibm4 module
- nltk.translate.ibm5 module
- nltk.translate.ibm_model module
- nltk.translate.meteor_score module
- nltk.translate.metrics module
- nltk.translate.nist_score module
- nltk.translate.phrase_based module
- nltk.translate.ribes_score module
- nltk.translate.stack_decoder module
- Module contents
- Submodules
- nltk.tree package
- Submodules
- Module contents
ImmutableMultiParentedTree
ImmutableParentedTree
ImmutableProbabilisticTree
ImmutableTree
MultiParentedTree
ParentedTree
ProbabilisticTree
Tree
Tree.__init__()
Tree.chomsky_normal_form()
Tree.collapse_unary()
Tree.convert()
Tree.copy()
Tree.draw()
Tree.flatten()
Tree.freeze()
Tree.fromlist()
Tree.fromstring()
Tree.height()
Tree.label()
Tree.leaf_treeposition()
Tree.leaves()
Tree.node
Tree.pformat()
Tree.pformat_latex_qtree()
Tree.pos()
Tree.pprint()
Tree.pretty_print()
Tree.productions()
Tree.set_label()
Tree.subtrees()
Tree.treeposition_spanning_leaves()
Tree.treepositions()
Tree.un_chomsky_normal_form()
TreePrettyPrinter
bracket_parse()
chomsky_normal_form()
collapse_unary()
sinica_parse()
un_chomsky_normal_form()
- nltk.twitter package
Submodules¶
- nltk.book module
- nltk.cli module
- nltk.collections module
- nltk.collocations module
- nltk.compat module
- nltk.data module
AUTO_FORMATS
BufferedGzipFile()
FORMATS
FileSystemPathPointer
GzipFileSystemPathPointer
LazyLoader
OpenOnDemandZipFile
PathPointer
SeekableUnicodeStreamReader
SeekableUnicodeStreamReader.DEBUG
SeekableUnicodeStreamReader.__init__()
SeekableUnicodeStreamReader.bytebuffer
SeekableUnicodeStreamReader.char_seek_forward()
SeekableUnicodeStreamReader.close()
SeekableUnicodeStreamReader.closed
SeekableUnicodeStreamReader.decode
SeekableUnicodeStreamReader.discard_line()
SeekableUnicodeStreamReader.encoding
SeekableUnicodeStreamReader.errors
SeekableUnicodeStreamReader.linebuffer
SeekableUnicodeStreamReader.mode
SeekableUnicodeStreamReader.name
SeekableUnicodeStreamReader.next()
SeekableUnicodeStreamReader.read()
SeekableUnicodeStreamReader.readline()
SeekableUnicodeStreamReader.readlines()
SeekableUnicodeStreamReader.seek()
SeekableUnicodeStreamReader.stream
SeekableUnicodeStreamReader.tell()
SeekableUnicodeStreamReader.xreadlines()
clear_cache()
find()
load()
path
retrieve()
show_cfg()
- nltk.decorators module
- nltk.downloader module
- Downloading Packages
- Download Directory
- NLTK Download Server
Collection
Downloader
Downloader.DEFAULT_URL
Downloader.INDEX_TIMEOUT
Downloader.INSTALLED
Downloader.NOT_INSTALLED
Downloader.PARTIAL
Downloader.STALE
Downloader.__init__()
Downloader.clear_status_cache()
Downloader.collections()
Downloader.corpora()
Downloader.default_download_dir()
Downloader.download()
Downloader.download_dir
Downloader.incr_download()
Downloader.index()
Downloader.info()
Downloader.is_installed()
Downloader.is_stale()
Downloader.list()
Downloader.models()
Downloader.packages()
Downloader.status()
Downloader.update()
Downloader.url
Downloader.xmlinfo()
DownloaderGUI
DownloaderMessage
DownloaderShell
ErrorMessage
FinishCollectionMessage
FinishDownloadMessage
FinishPackageMessage
FinishUnzipMessage
Package
ProgressMessage
SelectDownloadDirMessage
StaleMessage
StartCollectionMessage
StartDownloadMessage
StartPackageMessage
StartUnzipMessage
UpToDateMessage
build_index()
download()
download_gui()
download_shell()
md5_hexdigest()
unzip()
update()
- nltk.featstruct module
- Lightweight Feature Structures
FeatDict
FeatList
FeatStruct
FeatStruct.__new__()
FeatStruct.copy()
FeatStruct.cyclic()
FeatStruct.equal_values()
FeatStruct.freeze()
FeatStruct.frozen()
FeatStruct.remove_variables()
FeatStruct.rename_variables()
FeatStruct.retract_bindings()
FeatStruct.substitute_bindings()
FeatStruct.subsumes()
FeatStruct.unify()
FeatStruct.variables()
FeatStruct.walk()
FeatStructReader
FeatStructReader.VALUE_HANDLERS
FeatStructReader.__init__()
FeatStructReader.fromstring()
FeatStructReader.read_app_value()
FeatStructReader.read_fstruct_value()
FeatStructReader.read_int_value()
FeatStructReader.read_logic_value()
FeatStructReader.read_partial()
FeatStructReader.read_set_value()
FeatStructReader.read_str_value()
FeatStructReader.read_sym_value()
FeatStructReader.read_tuple_value()
FeatStructReader.read_value()
FeatStructReader.read_var_value()
Feature
RangeFeature
SlashFeature
conflicts()
subsumes()
unify()
- nltk.grammar module
CFG
CFG.__init__()
CFG.binarize()
CFG.check_coverage()
CFG.chomsky_normal_form()
CFG.eliminate_start()
CFG.fromstring()
CFG.is_binarised()
CFG.is_chomsky_normal_form()
CFG.is_flexible_chomsky_normal_form()
CFG.is_leftcorner()
CFG.is_lexical()
CFG.is_nonempty()
CFG.is_nonlexical()
CFG.leftcorner_parents()
CFG.leftcorners()
CFG.max_len()
CFG.min_len()
CFG.productions()
CFG.remove_unitary_rules()
CFG.start()
DependencyGrammar
DependencyProduction
Nonterminal
PCFG
ProbabilisticDependencyGrammar
ProbabilisticProduction
Production
induce_pcfg()
nonterminals()
read_grammar()
- nltk.help module
- nltk.internals module
Counter
Deprecated
ElementWrapper
ReadError
config_java()
deprecated()
find_binary()
find_binary_iter()
find_dir()
find_file()
find_file_iter()
find_jar()
find_jar_iter()
find_jars_within_path()
import_from_stdlib()
is_writable()
java()
overridden()
raise_unorderable_types()
read_int()
read_number()
read_str()
slice_bounds()
- nltk.jsontags module
- nltk.langnames module
- nltk.lazyimport module
- nltk.probability module
ConditionalFreqDist
ConditionalProbDist
ConditionalProbDistI
CrossValidationProbDist
DictionaryConditionalProbDist
DictionaryProbDist
ELEProbDist
FreqDist
HeldoutProbDist
ImmutableProbabilisticMixIn
KneserNeyProbDist
LaplaceProbDist
LidstoneProbDist
MLEProbDist
MutableProbDist
ProbDistI
ProbabilisticMixIn
SimpleGoodTuringProbDist
SimpleGoodTuringProbDist.SUM_TO_ONE
SimpleGoodTuringProbDist.__init__()
SimpleGoodTuringProbDist.check()
SimpleGoodTuringProbDist.discount()
SimpleGoodTuringProbDist.find_best_fit()
SimpleGoodTuringProbDist.freqdist()
SimpleGoodTuringProbDist.max()
SimpleGoodTuringProbDist.prob()
SimpleGoodTuringProbDist.samples()
SimpleGoodTuringProbDist.smoothedNr()
UniformProbDist
WittenBellProbDist
add_logs()
entropy()
log_likelihood()
sum_logs()
- nltk.tabdata module
- nltk.text module
- nltk.tgrep module
- nltk.toolbox module
- nltk.treeprettyprinter module
- nltk.treetransforms module
- nltk.util module
Index
acyclic_branches_depth_first()
acyclic_breadth_first()
acyclic_depth_first()
acyclic_dic2tree()
bigrams()
binary_search_file()
breadth_first()
choose()
clean_html()
clean_url()
cut_string()
edge_closure()
edges2dot()
elementtree_indent()
everygrams()
filestring()
flatten()
guess_encoding()
in_idle()
invert_dict()
invert_graph()
ngrams()
pad_sequence()
pairwise()
parallelize_preprocess()
pr()
print_string()
re_show()
set_proxy()
skipgrams()
tokenwrap()
transitive_closure()
trigrams()
unique_list()
unweighted_minimum_spanning_dict()
unweighted_minimum_spanning_digraph()
unweighted_minimum_spanning_tree()
- nltk.wsd module
Module contents¶
The Natural Language Toolkit (NLTK) is an open source Python library for Natural Language Processing. A free online book is available. (If you use the library for academic research, please cite the book.)
Steven Bird, Ewan Klein, and Edward Loper (2009). Natural Language Processing with Python. O’Reilly Media Inc. https://www.nltk.org/book/
isort:skip_file
@version: 3.9.1