(cls, fileobj)
return thes
Creates a Thesaurus object from the given file-like object, which should
        contain the WordNet wn_s.pl file.

        >>> f = open("wn_s.pl")
        >>> t = Thesaurus.from_file(f)
        >>> t.synonyms("hail")
        ['acclaim', 'come', 'herald']
Creates a Thesaurus object from the given file-like object, which should
        contain the WordNet wn_s.pl file.
Creates a Thesaurus object from the given file - like object which should contain the WordNet wn_s . pl file .
def from_file(cls, fileobj):
        """Creates a Thesaurus object from the given file-like object, which should
        contain the WordNet wn_s.pl file.

        >>> f = open("wn_s.pl")
        >>> t = Thesaurus.from_file(f)
        >>> t.synonyms("hail")
        ['acclaim', 'come', 'herald']
        """

        thes = cls()
        thes.w2n, thes.n2w = parse_file(fileobj)
        return thes
def from_file ( cls , fileobj ) : thes = cls ( ) thes . w2n , thes . n2w = parse_file ( fileobj ) return thes