nltk package¶
Subpackages¶
- nltk.app package
- nltk.ccg package
- Submodules
- nltk.ccg.api module
- nltk.ccg.chart module
- nltk.ccg.combinator module
BackwardCombinatorDirectedBinaryCombinatorForwardCombinatorUndirectedBinaryCombinatorUndirectedCompositionUndirectedFunctionApplicationUndirectedSubstitutionUndirectedTypeRaisebackwardBxConstraint()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’
BinaryMaxentFeatureEncodingConditionalExponentialClassifierFunctionBackedMaxentFeatureEncodingGISEncodingMaxentClassifierMaxentFeatureEncodingITadmEventMaxentFeatureEncodingTadmMaxentClassifierTypedMaxentFeatureEncodingcalculate_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
AbstractChartRuleBottomUpChartParserBottomUpLeftCornerChartParserBottomUpPredictCombineRuleBottomUpPredictRuleCachedTopDownPredictRuleChartChartParserChartRuleIEdgeIEmptyPredictRuleFilteredBottomUpPredictCombineRuleFilteredSingleEdgeFundamentalRuleFundamentalRuleLeafEdgeLeafInitRuleLeftCornerChartParserSingleEdgeFundamentalRuleSteppingChartParserTopDownChartParserTopDownInitRuleTopDownPredictRuleTreeEdgedemo()demo_grammar()
- nltk.parse.corenlp module
- nltk.parse.dependencygraph module
- nltk.parse.earleychart module
CompleteFundamentalRuleCompleterRuleEarleyChartParserFeatureCompleteFundamentalRuleFeatureCompleterRuleFeatureEarleyChartParserFeatureIncrementalBottomUpChartParserFeatureIncrementalBottomUpLeftCornerChartParserFeatureIncrementalChartFeatureIncrementalChartParserFeatureIncrementalTopDownChartParserFeaturePredictorRuleFeatureScannerRuleFilteredCompleteFundamentalRuleIncrementalBottomUpChartParserIncrementalBottomUpLeftCornerChartParserIncrementalChartIncrementalChartParserIncrementalLeftCornerChartParserIncrementalTopDownChartParserPredictorRuleScannerRuledemo()
- nltk.parse.evaluate module
- nltk.parse.featurechart module
FeatureBottomUpChartParserFeatureBottomUpLeftCornerChartParserFeatureBottomUpPredictCombineRuleFeatureBottomUpPredictRuleFeatureChartFeatureChartParserFeatureEmptyPredictRuleFeatureFundamentalRuleFeatureSingleEdgeFundamentalRuleFeatureTopDownChartParserFeatureTopDownInitRuleFeatureTopDownPredictRuleFeatureTreeEdgeInstantiateVarsChartdemo()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
AnaphoraResolutionExceptionDRSDrsDrawerDrtAbstractVariableExpressionDrtApplicationExpressionDrtBinaryExpressionDrtBooleanExpressionDrtConcatenationDrtConstantExpressionDrtEqualityExpressionDrtEventVariableExpressionDrtExpressionDrtFunctionVariableExpressionDrtIndividualVariableExpressionDrtLambdaExpressionDrtNegatedExpressionDrtOrExpressionDrtParserDrtPropositionDrtTokensDrtVariableExpression()PossibleAntecedentsdemo()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
AbstractVariableExpressionAllExpressionAndExpressionAnyTypeApplicationExpressionBasicTypeBinaryExpressionBooleanExpressionComplexTypeConstantExpressionEntityTypeEqualityExpressionEventTypeEventVariableExpressionExistsExpressionExpectedMoreTokensExceptionExpressionFunctionVariableExpressionIffExpressionIllegalTypeExceptionImpExpressionInconsistentTypeHierarchyExceptionIndividualVariableExpressionIotaExpressionLambdaExpressionLogicParserLogicalExpressionExceptionNegatedExpressionOrExpressionQuantifiedExpressionSubstituteBindingsITokensTruthValueTypeTypeTypeExceptionTypeResolutionExceptionUnexpectedTokenExceptionVariableVariableBinderExpressionVariableExpression()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.lepor 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
ImmutableMultiParentedTreeImmutableParentedTreeImmutableProbabilisticTreeImmutableTreeMultiParentedTreeParentedTreeProbabilisticTreeTreeTree.__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.nodeTree.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()
TreePrettyPrinterbracket_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_FORMATSBufferedGzipFile()FORMATSFileSystemPathPointerGzipFileSystemPathPointerLazyLoaderOpenOnDemandZipFilePathPointerSeekableUnicodeStreamReaderSeekableUnicodeStreamReader.DEBUGSeekableUnicodeStreamReader.__init__()SeekableUnicodeStreamReader.bytebufferSeekableUnicodeStreamReader.char_seek_forward()SeekableUnicodeStreamReader.close()SeekableUnicodeStreamReader.closedSeekableUnicodeStreamReader.decodeSeekableUnicodeStreamReader.discard_line()SeekableUnicodeStreamReader.encodingSeekableUnicodeStreamReader.errorsSeekableUnicodeStreamReader.linebufferSeekableUnicodeStreamReader.modeSeekableUnicodeStreamReader.nameSeekableUnicodeStreamReader.next()SeekableUnicodeStreamReader.read()SeekableUnicodeStreamReader.readline()SeekableUnicodeStreamReader.readlines()SeekableUnicodeStreamReader.seek()SeekableUnicodeStreamReader.streamSeekableUnicodeStreamReader.tell()SeekableUnicodeStreamReader.xreadlines()
clear_cache()find()load()pathretrieve()show_cfg()
- nltk.decorators module
- nltk.downloader module
- Downloading Packages
- Download Directory
- NLTK Download Server
CollectionDownloaderDownloader.DEFAULT_URLDownloader.INDEX_TIMEOUTDownloader.INSTALLEDDownloader.NOT_INSTALLEDDownloader.PARTIALDownloader.STALEDownloader.__init__()Downloader.clear_status_cache()Downloader.collections()Downloader.corpora()Downloader.default_download_dir()Downloader.download()Downloader.download_dirDownloader.incr_download()Downloader.index()Downloader.info()Downloader.is_installed()Downloader.is_stale()Downloader.list()Downloader.models()Downloader.packages()Downloader.status()Downloader.update()Downloader.urlDownloader.xmlinfo()
DownloaderGUIDownloaderMessageDownloaderShellErrorMessageFinishCollectionMessageFinishDownloadMessageFinishPackageMessageFinishUnzipMessagePackageProgressMessageSelectDownloadDirMessageStaleMessageStartCollectionMessageStartDownloadMessageStartPackageMessageStartUnzipMessageUpToDateMessagebuild_index()download()download_gui()download_shell()md5_hexdigest()sha256_hexdigest()unzip()update()
- nltk.featstruct module
- Lightweight Feature Structures
FeatDictFeatListFeatStructFeatStruct.__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()
FeatStructReaderFeatStructReader.VALUE_HANDLERSFeatStructReader.__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()
FeatureRangeFeatureSlashFeatureconflicts()subsumes()unify()
- nltk.grammar module
CFGCFG.__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_mixed_rules()CFG.remove_unitary_rules()CFG.start()
DependencyGrammarDependencyProductionNonterminalPCFGProbabilisticDependencyGrammarProbabilisticProductionProductioninduce_pcfg()nonterminals()read_grammar()
- nltk.help module
- nltk.internals module
CounterDeprecatedElementWrapperReadErrorconfig_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
ConditionalFreqDistConditionalProbDistConditionalProbDistICrossValidationProbDistDictionaryConditionalProbDistDictionaryProbDistELEProbDistFreqDistHeldoutProbDistImmutableProbabilisticMixInKneserNeyProbDistLaplaceProbDistLidstoneProbDistMLEProbDistMutableProbDistProbDistIProbabilisticMixInSimpleGoodTuringProbDistSimpleGoodTuringProbDist.SUM_TO_ONESimpleGoodTuringProbDist.__init__()SimpleGoodTuringProbDist.check()SimpleGoodTuringProbDist.discount()SimpleGoodTuringProbDist.find_best_fit()SimpleGoodTuringProbDist.freqdist()SimpleGoodTuringProbDist.max()SimpleGoodTuringProbDist.prob()SimpleGoodTuringProbDist.samples()SimpleGoodTuringProbDist.smoothedNr()
UniformProbDistWittenBellProbDistadd_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
Indexacyclic_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.2