Convert Java code to python code

Hi, i have several java code to build transliteration system that can solve homograph and disambiguation. But i have a problem to convert java code into python code. Im really thankful if you can help me. Here is the code:

Your code is not displaying :upside_down_face:. Try editing your post and adding it again.