Permalink
Browse files

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

  • Loading branch information...
1 parent 57e9187 commit 8463f742e270a78b338c1cff13470bfff57c1cb0 @jnothman jnothman committed Mar 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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.
"""

0 comments on commit 8463f74

Please sign in to comment.