Class ContextIndexGenerator


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

      Constructors 
      Constructor Description
      ContextIndexGenerator​(java.io.File biothesaurusFile, 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

      • ContextIndexGenerator

        public ContextIndexGenerator​(java.io.File biothesaurusFile,
                                     java.io.File indexFile,
                                     java.lang.String resourcesDir)
                              throws java.io.FileNotFoundException,
                                     java.io.IOException
        constructor which creates index in the specified directory on the disk
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
    • 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