
NLTK :: Natural Language Toolkit
2024年8月19日 · NLTK is a leading platform for building Python programs to work with human language data. It provides easy-to-use interfaces to over 50 corpora and lexical resources …
NLTK Book
This version of the NLTK book is updated for Python 3 and NLTK 3. The first edition of the book, published by O'Reilly, is available at http://nltk.org/book_1ed/ . (There are currently no plans …
Installing NLTK
2024年8月19日 · Installing NLTK¶ NLTK requires Python versions 3.8, 3.9, 3.10, 3.11 or 3.12. For Windows users, it is strongly recommended that you go through this guide to install Python 3 …
2. Accessing Text Corpora and Lexical Resources - NLTK
☼ Use the Brown corpus reader nltk.corpus.brown.words() or the Web text corpus reader nltk.corpus.webtext.words() to access some sample text in two different genres. ☼ Read in the …
nltk.grammar module
nltk.grammar module¶ Basic data classes for representing context free grammars. A “grammar” specifies which trees can represent the structure of a given text. Each of these trees is called a …
nltk.data module
2024年8月19日 · nltk.data module¶ Functions to find and load NLTK resource files, such as corpora, grammars, and saved processing objects. Resource files are identified using URLs, …
Sample usage for translate - NLTK
2024年8月19日 · Precision is probably the most well known evaluation metric and it is implemented in nltk.metrics.scores.precision. Since precision is simply interested in the …
nltk.translate.bleu_score module
2024年8月19日 · nltk.translate.bleu_score. corpus_bleu (list_of_references, hypotheses, weights = (0.25, 0.25, 0.25, 0.25), smoothing_function = None, auto_reweigh = False) [source] ¶ …
nltk.probability.FreqDist
2023年1月2日 · nltk.probability.FreqDist¶ class nltk.probability. FreqDist [source] ¶ Bases: Counter. A frequency distribution for the outcomes of an experiment. A frequency distribution …
nltk.text module
2024年8月19日 · This module brings together a variety of NLTK functionality for text analysis, and provides simple, interactive interfaces. Functionality includes: concordancing, collocation …