Package com.articulate.sigma.wordNet
Class OMWordnet
java.lang.Object
com.articulate.sigma.wordNet.OMWordnet
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic OMWordnetThis code is copyright Articulate Software (c) 2003. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcodeToLanguage(String code) static <T> Tdecoder()static StringdisplaySynset(String kbName, String synset, String params) static voidstatic StringformatWords(String term, String kbName, String lang, String href) HTML format a list of word sensesstatic StringfromOMWsynset(String synset) Convert a POS-suffix OMW synset to an 8-digit WordNet synset.static voidstatic StringlanguageToCode(String lang) static voidLoad the most recently save serialized version.static voidA main method, used only for testing.static voidAssumes a fixed set of files in the KBs directory.static voidsave serialized version.static booleanstatic booleanCheck whether sources are newer than serialized version.static StringtoOMWsynset(String synset) Convert a 9-digit, POS-prefixed WordNet synset to a POS-suffix OMW synset.
-
Field Details
-
wordnets
This code is copyright Articulate Software (c) 2003. Some portions copyright Teknowledge (c) 2003 and reused under the terms of the GNU license. This software is released under the GNU Public License invalid input: '<'http://www.gnu.org/copyleft/gpl.html>. Users of this code also consent, by use of this code, to credit Articulate Software and Teknowledge in any writings, briefings, publications, presentations, or other representations of any software which incorporates, builds on, or uses this code. Please cite the following article in any publication with references: Pease, A., (2003). The Sigma Ontology Development Environment, in Working Notes of the IJCAI-2003 Workshop on Ontology and Distributed Systems, August 9, Acapulco, Mexico. Authors: Adam Pease Infosys LTD. -
glosses
-
examples
-
omw
-
disable
public static boolean disable -
lcodes
-
lnames
-
-
Constructor Details
-
OMWordnet
public OMWordnet()
-
-
Method Details
-
codeToLanguage
-
languageToCode
-
toOMWsynset
Convert a 9-digit, POS-prefixed WordNet synset to a POS-suffix OMW synset. -
fromOMWsynset
Convert a POS-suffix OMW synset to an 8-digit WordNet synset. -
encoder
-
decoder
public static <T> T decoder() -
serializedOld
public static boolean serializedOld()Check whether sources are newer than serialized version. -
loadSerialized
public static void loadSerialized()Load the most recently save serialized version. -
serialize
public static void serialize()save serialized version. -
serializedExists
public static boolean serializedExists() -
readOMWfiles
public static void readOMWfiles()Assumes a fixed set of files in the KBs directory. -
generateOMWOWLformat
-
formatWords
HTML format a list of word senses- Parameters:
term- is the SUMO termlang- is the SUMO term for a language (EnglishLanguage, FrenchLanguage etc)
-
displaySynset
-
main
A main method, used only for testing. It should not be called during normal operation.
-