Class SynonymDisambiguationIndexGenerator


  • public class SynonymDisambiguationIndexGenerator
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SynonymDisambiguationIndexGenerator​(java.io.File idFile, java.io.File indexFile, java.lang.String resourcesDir)
      constructor which creates index in the specified directory on the disk
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createIndex​(java.lang.String idType)
      create the index, i.e.
      static void main​(java.lang.String[] args)
      To execute the ContextIndexGenerator start it with the following command-line arguments:
      arg0: path to resources directory arg1: path to context indices directory
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SynonymDisambiguationIndexGenerator

        public SynonymDisambiguationIndexGenerator​(java.io.File idFile,
                                                   java.io.File indexFile,
                                                   java.lang.String resourcesDir)
        constructor which creates index in the specified directory on the disk
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        To execute the ContextIndexGenerator start it with the following command-line arguments:
        arg0: path to resources directory arg1: path to context indices directory
        Parameters:
        args -
      • createIndex

        public void createIndex​(java.lang.String idType)
                         throws java.io.IOException
        create the index, i.e. read from the biothesaurus file (which is expected to have normalized synonyms!) and then write it to the index.
        Throws:
        java.io.IOException