wn.project¶
Wordnet and ILI Packages and Collections
- wn.project.iterpackages(path)¶
Yield any wordnet or ILI packages found at path.
- The path argument can point to one of the following:
a lexical resource file or ILI file
a wordnet package directory
a wordnet collection directory
a tar archive containing one of the above
a compressed (gzip or lzma) resource file or tar archive
- wn.project.is_package_directory(path)¶
Return
Trueif path appears to be a wordnet or ILI package.
- wn.project.is_collection_directory(path)¶
Return
Trueif path appears to be a wordnet collection.
- class wn.project.Package(path)¶
This class represents a wordnet or ILI package – a directory with a resource file and optional metadata.
- class wn.project.Collection(path)¶
This class represents a wordnet or ILI collection – a directory with one or more wordnet/ILI packages and optional metadata.