Class VocabularyAssert


  • public class VocabularyAssert
    extends Object
    Utility class for doing vocabulary-based stemming tests
    • Constructor Detail

      • VocabularyAssert

        public VocabularyAssert()
    • Method Detail

      • assertVocabulary

        public static void assertVocabulary​(org.apache.lucene.analysis.Analyzer a,
                                            InputStream voc,
                                            InputStream out)
                                     throws IOException
        Run a vocabulary test against two data files.
        Throws:
        IOException
      • assertVocabulary

        public static void assertVocabulary​(org.apache.lucene.analysis.Analyzer a,
                                            InputStream vocOut)
                                     throws IOException
        Run a vocabulary test against one file: tab separated.
        Throws:
        IOException
      • assertVocabulary

        public static void assertVocabulary​(org.apache.lucene.analysis.Analyzer a,
                                            File zipFile,
                                            String voc,
                                            String out)
                                     throws IOException
        Run a vocabulary test against two data files inside a zip file
        Throws:
        IOException
      • assertVocabulary

        public static void assertVocabulary​(org.apache.lucene.analysis.Analyzer a,
                                            File zipFile,
                                            String vocOut)
                                     throws IOException
        Run a vocabulary test against a tab-separated data file inside a zip file
        Throws:
        IOException