WordNetSemanticSimilarity.WordNetTreatment
Class WordNetProcessing

java.lang.Object
  extended by WordNetSemanticSimilarity.WordNetTreatment.WordNetProcessing

public class WordNetProcessing
extends java.lang.Object


Constructor Summary
WordNetProcessing(DataBaseConnection dbc, java.lang.String pathFilePropertiesWordNet, java.lang.String pathWordNetDictFolder, WordNetVersion version)
          Constructor allowing the configuration of an access to WordNet without specifying the part of speech.
WordNetProcessing(DataBaseConnection dbc, java.lang.String pathFilePropertiesWordNet, java.lang.String pathWordNetDictFolder, WordNetVersion version, net.sf.extjwnl.data.POS pos)
          Constructor allowing the configuration of an access to WordNet.
 
Method Summary
 void createWordnetTable()
           
 void fullWordNetTreatment()
           
 DataBaseConnection getDataBaseConnection()
          Get an instance of DataBaseConnection including the connection details to the database.
 java.lang.String getPathFilePropertiesWordNet()
          Get the path of an XML file for accessing to the WordNet data.
 net.sf.extjwnl.data.POS getPOS()
          Get the part of speech.
 java.lang.String getTableHyperName()
          Get the name of TableHyper conatining the hypernyms of each synset.
 java.lang.String getTableHypoName()
          Get the name of TableHypo containing the hyponyms of each synset.
 java.lang.String getTableInfoName()
          Get the name of the TableInfo containing the taxonomic paramters of each synset.
 java.lang.String getTableWordNetLoading()
          Get the name of TableWordNetLoading of WordNet.
 WordNetVersion getVersion()
          Return the version of used WordNet.
 net.sf.extjwnl.dictionary.Dictionary getWordnet()
          Get an instance Dictionary for exploring WordNet
static net.sf.extjwnl.dictionary.Dictionary getWordnet(java.lang.String pathWordNetDictFolder, java.lang.String pathFilePropertiesWordNet)
          Return an instance Dictionary to explore WordNet
static void initialize(DataBaseConnection dbc)
          Static method to be used once for the creation of the database.
 void LoadWordNetInDataBase()
          Loading WordNet in the MySQL database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordNetProcessing

public WordNetProcessing(DataBaseConnection dbc,
                         java.lang.String pathFilePropertiesWordNet,
                         java.lang.String pathWordNetDictFolder,
                         WordNetVersion version,
                         net.sf.extjwnl.data.POS pos)
                  throws java.io.FileNotFoundException,
                         net.sf.extjwnl.JWNLException,
                         java.sql.SQLException,
                         javax.xml.transform.TransformerConfigurationException,
                         javax.xml.transform.TransformerException,
                         javax.xml.parsers.ParserConfigurationException,
                         org.xml.sax.SAXException,
                         java.io.IOException
Constructor allowing the configuration of an access to WordNet.

Parameters:
dbc -
pathFilePropertiesWordNet -
pathWordNetDictFolder -
version -
pos -
Throws:
java.io.FileNotFoundException
net.sf.extjwnl.JWNLException
java.sql.SQLException
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

WordNetProcessing

public WordNetProcessing(DataBaseConnection dbc,
                         java.lang.String pathFilePropertiesWordNet,
                         java.lang.String pathWordNetDictFolder,
                         WordNetVersion version)
                  throws java.io.FileNotFoundException,
                         net.sf.extjwnl.JWNLException,
                         java.sql.SQLException,
                         javax.xml.transform.TransformerConfigurationException,
                         javax.xml.transform.TransformerException,
                         javax.xml.parsers.ParserConfigurationException,
                         org.xml.sax.SAXException,
                         java.io.IOException
Constructor allowing the configuration of an access to WordNet without specifying the part of speech.

Parameters:
dbc -
pathFilePropertiesWordNet -
pathWordNetDictFolder -
version -
Throws:
java.io.FileNotFoundException
net.sf.extjwnl.JWNLException
java.sql.SQLException
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
Method Detail

createWordnetTable

public void createWordnetTable()
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

initialize

public static void initialize(DataBaseConnection dbc)
                       throws java.sql.SQLException
Static method to be used once for the creation of the database.

Parameters:
dbc -
Throws:
java.sql.SQLException

getWordnet

public net.sf.extjwnl.dictionary.Dictionary getWordnet()
                                                throws WordnetTreatmentException
Get an instance Dictionary for exploring WordNet

Throws:
WordnetTreatmentException

getWordnet

public static net.sf.extjwnl.dictionary.Dictionary getWordnet(java.lang.String pathWordNetDictFolder,
                                                              java.lang.String pathFilePropertiesWordNet)
                                                       throws javax.xml.transform.TransformerConfigurationException,
                                                              javax.xml.transform.TransformerException,
                                                              javax.xml.parsers.ParserConfigurationException,
                                                              org.xml.sax.SAXException,
                                                              java.io.IOException,
                                                              net.sf.extjwnl.JWNLException
Return an instance Dictionary to explore WordNet

Parameters:
pathWordNetDictFolder -
pathFilePropertiesWordNet -
Throws:
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
net.sf.extjwnl.JWNLException

getVersion

public WordNetVersion getVersion()
Return the version of used WordNet.


getDataBaseConnection

public DataBaseConnection getDataBaseConnection()
Get an instance of DataBaseConnection including the connection details to the database.


getPOS

public net.sf.extjwnl.data.POS getPOS()
Get the part of speech.


getPathFilePropertiesWordNet

public java.lang.String getPathFilePropertiesWordNet()
Get the path of an XML file for accessing to the WordNet data.


getTableInfoName

public java.lang.String getTableInfoName()
Get the name of the TableInfo containing the taxonomic paramters of each synset.


getTableHyperName

public java.lang.String getTableHyperName()
Get the name of TableHyper conatining the hypernyms of each synset.


getTableHypoName

public java.lang.String getTableHypoName()
Get the name of TableHypo containing the hyponyms of each synset.


getTableWordNetLoading

public java.lang.String getTableWordNetLoading()
Get the name of TableWordNetLoading of WordNet.


LoadWordNetInDataBase

public void LoadWordNetInDataBase()
                           throws net.sf.extjwnl.JWNLException,
                                  java.sql.SQLException
Loading WordNet in the MySQL database

Throws:
net.sf.extjwnl.JWNLException
java.sql.SQLException

fullWordNetTreatment

public void fullWordNetTreatment()
                          throws WordnetTreatmentException,
                                 java.sql.SQLException,
                                 net.sf.extjwnl.JWNLException
Throws:
WordnetTreatmentException
java.sql.SQLException
net.sf.extjwnl.JWNLException