From afe23b3f343cd2f7f5e15213be581cf6ee633c36 Mon Sep 17 00:00:00 2001 From: Min ho Kim Date: Sun, 23 Jun 2019 00:04:45 +1000 Subject: [PATCH] Fix typo --- nltk/classify/textcat.py | 2 +- nltk/parse/malt.py | 2 +- nltk/stem/cistem.py | 2 +- nltk/stem/porter.py | 2 +- nltk/test/corpus.doctest | 2 +- nltk/twitter/common.py | 2 +- nltk/twitter/twitterclient.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nltk/classify/textcat.py b/nltk/classify/textcat.py index b217fa8ce5..8d35605047 100644 --- a/nltk/classify/textcat.py +++ b/nltk/classify/textcat.py @@ -18,7 +18,7 @@ be identified-then compares using a distance measure. Language n-grams are provided by the "An Crubadan" -project. A corpus reader was created seperately to read +project. A corpus reader was created separately to read those files. For details regarding the algorithm, see: diff --git a/nltk/parse/malt.py b/nltk/parse/malt.py index 2523927f8e..c588b5cb79 100644 --- a/nltk/parse/malt.py +++ b/nltk/parse/malt.py @@ -329,7 +329,7 @@ def train_from_file(self, conll_file, verbose=False): if __name__ == '__main__': ''' - A demostration function to show how NLTK users can use the malt parser API. + A demonstration function to show how NLTK users can use the malt parser API. >>> from nltk import pos_tag >>> assert 'MALT_PARSER' in os.environ, str( diff --git a/nltk/stem/cistem.py b/nltk/stem/cistem.py index efbd5fbca0..0ddbe22a03 100644 --- a/nltk/stem/cistem.py +++ b/nltk/stem/cistem.py @@ -33,7 +33,7 @@ class Cistem(StemmerI): is thrice as fast as the Snowball stemmer for German while being about as fast as most other stemmers. - case_insensitive is a a boolean specifiying if case-insensitive stemming + case_insensitive is a a boolean specifying if case-insensitive stemming should be used. Case insensitivity improves performance only if words in the text may be incorrectly upper case. For all-lowercase and correctly cased text, best performance is achieved by setting case_insensitive for false. diff --git a/nltk/stem/porter.py b/nltk/stem/porter.py index e79b8b6de3..bfc5dd81fc 100644 --- a/nltk/stem/porter.py +++ b/nltk/stem/porter.py @@ -75,7 +75,7 @@ class PorterStemmer(StemmerI): For the best stemming, you should use the default NLTK_EXTENSIONS version. However, if you need to get the same results as either the original algorithm or one of Martin Porter's hosted versions for - compability with an existing implementation or dataset, you can use + compatibility with an existing implementation or dataset, you can use one of the other modes instead. """ diff --git a/nltk/test/corpus.doctest b/nltk/test/corpus.doctest index 3fa0ae649c..5509fe2fd2 100644 --- a/nltk/test/corpus.doctest +++ b/nltk/test/corpus.doctest @@ -1216,7 +1216,7 @@ definitions of these data access methods wherever possible. At a high level, corpora can be divided into three basic types: -- A *token corpus* contains information about specific occurences of +- A *token corpus* contains information about specific occurrences of language use (or linguistic tokens), such as dialogues or written texts. Examples of token corpora are collections of written text and collections of speech. diff --git a/nltk/twitter/common.py b/nltk/twitter/common.py index a06f08f47d..453b0c0a33 100644 --- a/nltk/twitter/common.py +++ b/nltk/twitter/common.py @@ -115,7 +115,7 @@ def json2csv( are 'id_str' for the tweetID and 'text' for the text of the tweet. See\ for a full list of fields.\ e. g.: ['id_str'], ['id', 'text', 'favorite_count', 'retweet_count']\ - Additonally, it allows IDs from other Twitter objects, e. g.,\ + Additionally, it allows IDs from other Twitter objects, e. g.,\ ['id', 'text', 'user.id', 'user.followers_count', 'user.friends_count'] :param error: Behaviour for encoding errors, see\ diff --git a/nltk/twitter/twitterclient.py b/nltk/twitter/twitterclient.py index 9f791983ac..6083fa223e 100644 --- a/nltk/twitter/twitterclient.py +++ b/nltk/twitter/twitterclient.py @@ -199,7 +199,7 @@ def search_tweets( Call the REST API ``'search/tweets'`` endpoint with some plausible defaults. See `the Twitter search documentation `_ for more information - about admissable search parameters. + about admissible search parameters. :param str keywords: A list of query terms to search for, written as\ a comma-separated string