Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace comments' load_ic() with nltk.corpus.wordnet_ic.ic()

  • Loading branch information...
commit 8463f742e270a78b338c1cff13470bfff57c1cb0 1 parent 57e9187
@jnothman jnothman authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 nltk/corpus/reader/wordnet.py
View
6 nltk/corpus/reader/wordnet.py
@@ -729,7 +729,7 @@ def res_similarity(self, other, ic, verbose=False):
:type other: Synset
:param other: The ``Synset`` that this ``Synset`` is being compared to.
:type ic: dict
- :param ic: an information content object (as returned by ``load_ic()``).
+ :param ic: an information content object (as returned by ``nltk.corpus.wordnet_ic.ic()``).
:return: A float score denoting the similarity of the two ``Synset`` objects.
Synsets whose LCS is the root node of the taxonomy will have a
score of 0 (e.g. N['dog'][0] and N['table'][0]).
@@ -749,7 +749,7 @@ def jcn_similarity(self, other, ic, verbose=False):
:type other: Synset
:param other: The ``Synset`` that this ``Synset`` is being compared to.
:type ic: dict
- :param ic: an information content object (as returned by ``load_ic()``).
+ :param ic: an information content object (as returned by ``nltk.corpus.wordnet_ic.ic()``).
:return: A float score denoting the similarity of the two ``Synset`` objects.
"""
@@ -781,7 +781,7 @@ def lin_similarity(self, other, ic, verbose=False):
:type other: Synset
:param other: The ``Synset`` that this ``Synset`` is being compared to.
:type ic: dict
- :param ic: an information content object (as returned by ``load_ic()``).
+ :param ic: an information content object (as returned by ``nltk.corpus.wordnet_ic.ic()``).
:return: A float score denoting the similarity of the two ``Synset`` objects,
in the range 0 to 1.
"""
Please sign in to comment.
Something went wrong with that request. Please try again.