-
Clone the directory into local machine using the command
git clone https://github.com/tejasvicsr1/Hindi-Arithmetic-Word-Problem-Solver.git -
Download ISC Tokenizer from https://bitbucket.org/iscnlp/tokenizer/src/master/ and install it. Now, copy the isc_tokenizer folder into the same directory as the directory of the Word Problem Solver.
-
Download ISC POS Tagger from https://bitbucket.org/iscnlp/pos-tagger/src/master/ and install it by following instructions in its README. Then copy the directory isc_tagger into the same directory as the directory of the Word Problem Solver.
-
Download Hindi Morphanalyzer from
https://iiitaphyd-my.sharepoint.com/:u:/g/personal pruthwik_mishra_research_iiit_ac_in/EVdvOPI6vOxBn02Lnuh9Pz4B4dnZJwXNGhsTMAnJN0dXIw?e=IOPU3Sand install it by following the instructions in the README. Copy the scriptrun_morph_on_file_with_raw_text.pyand the folderconvertor-indic-1.5.2andmorph-hin-le-5.0.5into the same directory as the directory of the Word Problem Solver.
By the end of the installation, your directory should have the following files -
buildconverter-indic-1.5.2calculate.pydependency_parser.egg-infoeng-hin_numbers.pyfinalsentenceanalyze.pyisc_taggerisc_tokenizerkartakaram.pymorph-hin-le-5.0.5pos-taggerpos_tagger.egg-infopycacheREADME.mdrequirements.txtrun_morph_on_file_with_raw_text.pysetup.cfgsetup.pysource.pytempfile.txttokenizer_for_IL.pyverbdocumentation.txt
This code will work only for Ubuntu 18.04 due to limitations with morph analyser
The necessary tools are now installed, and the application can now be used.
-
Put the sentences you want to run the Solver on in the list in the script
source.py, along with the expected answer if you wish to measure the accuracy. -
Run the command, while in the current directory
python3 equation.py
The Solver will run and display the output and answers accordingly.