gov.llnl.ontology.wordnet
Class WordNetCorpusWriter
java.lang.Object
gov.llnl.ontology.wordnet.WordNetCorpusWriter
- All Implemented Interfaces:
- OntologyWriter
public class WordNetCorpusWriter
- extends Object
- implements OntologyWriter
- Author:
- Keith Stevens
Field Summary |
static String[] |
FILE_EXTENSIONS
The file extensions for each of the data and index files in the WordNet
dictionary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_EXTENSIONS
public static final String[] FILE_EXTENSIONS
- The file extensions for each of the data and index files in the WordNet
dictionary.
WordNetCorpusWriter
public WordNetCorpusWriter()
saveOntology
public void saveOntology(OntologyReader reader,
String outputDir)
- Saves the Wordnet lexical mappings to the standard wordnet data format.
New index and data files will be created in the path specified by
outputDir
. Only index and data files will be created, since details
such as morphological exceptions, verb frames, and anything else are
left unchanged. The resulting data and index files will be in no
particular order and have no license information. Users should not
modify these files after they have been created as that will more than
likely corrupt offset values which are used by other WordNet interfaces.
- Specified by:
saveOntology
in interface OntologyWriter
Copyright © 2010-2011. All Rights Reserved.