17-05-2016, 12:54 AM
(This post was last modified: 17-05-2016, 01:24 PM by Torsten.
Edit Reason: Typos fixed
)
Quote:Is it possible that you describe or disclose me the way you check for similarities?
Hello Davidsch,
sorry for not replying sooner.
I have published the code for my app via GitHub: You are not allowed to view links. Register or Login to view.
In SimilarResults.swift you can find the code for determining the top two words with the most similarities for each page. Starting point is the function calcTopWords(voynichLoader: OriginalVonyichLoader) at the end of the file. (see You are not allowed to view links. Register or Login to view.)
The results of this function are stored as compareMap in line 507. (see You are not allowed to view links. Register or Login to view.)
To compare two words in Line 844 the function Levenshtein.getDistanceOptimized() is called.
(see You are not allowed to view links. Register or Login to view.)
The class "AutoCopyTextGenerator" is used to generate the pseudo text.
(see You are not allowed to view links. Register or Login to view.)
The class "Glyph" stores the dictionary "similarElements". This dictionary determines which glyphs or ligatures can replace each other.
(see You are not allowed to view links. Register or Login to view.)

