Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #2324

Merged
merged 1 commit into from Jul 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion nltk/classify/textcat.py
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion nltk/parse/malt.py
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion nltk/stem/cistem.py
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion nltk/stem/porter.py
Expand Up @@ -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.
"""

Expand Down
2 changes: 1 addition & 1 deletion nltk/test/corpus.doctest
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion nltk/twitter/common.py
Expand Up @@ -115,7 +115,7 @@ def json2csv(
are 'id_str' for the tweetID and 'text' for the text of the tweet. See\
<https://dev.twitter.com/overview/api/tweets> 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\
Expand Down
2 changes: 1 addition & 1 deletion nltk/twitter/twitterclient.py
Expand Up @@ -199,7 +199,7 @@ def search_tweets(
Call the REST API ``'search/tweets'`` endpoint with some plausible
defaults. See `the Twitter search documentation
<https://dev.twitter.com/rest/public/search>`_ 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
Expand Down