static void Main(string[] args) { //TestOnTestTexts(new TrieDR(binaryFilePath, positionTriePath), 1); //TrieDR trieDR = new TrieDR(binaryFilePath, positionTriePath); //TestWiki(trieDR); using (FileDR dr = new FileDR(binaryFilePath, positionTriePath)) { TestWiki(dr); } //using (FileDR fdr = new FileDR(binaryFilePath, positionTriePath)) //{ // TestOnTestTexts(fdr, 0); //} //OnlyTestTexts(reconstructorsPath[4]); //OnlyTestTexts(reconstructorsPath[3]); //OnlyTestTexts(reconstructorsPath[2]); }
/// <summary> /// <para> /// Reconstuctor is fast diacritics reconstructor that reconstructs /// one word approximately in 4ms with 98,17% accuracy. It needs at least 1.5GB RAM. /// </para> /// <para> /// Creation of first instance of this class may take few seconds. /// Once the program creates internal structure in memory, it will be used in others instances. /// </para> /// </summary> /// <param name="binaryFilePath">Path to binary file "compoundBinFile.dat".</param> /// <param name="positionTriePath">Path to text file "positionTrie.txt".</param> public Reconstructor(string binaryFilePath, string positionTriePath) { dr = new FileDR(binaryFilePath, positionTriePath); }