Software Open Access
Amrith Krishna; Bishal Santra; Sasi Prasanth Bandaru; Gaurav Sahu; Vishnu Dutt Sharma; Pavankumar Satuluri; Pawan Goyal
<?xml version='1.0' encoding='utf-8'?> <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> <dc:creator>Amrith Krishna</dc:creator> <dc:creator>Bishal Santra</dc:creator> <dc:creator>Sasi Prasanth Bandaru</dc:creator> <dc:creator>Gaurav Sahu</dc:creator> <dc:creator>Vishnu Dutt Sharma</dc:creator> <dc:creator>Pavankumar Satuluri</dc:creator> <dc:creator>Pawan Goyal</dc:creator> <dc:date>2018-08-23</dc:date> <dc:description>This is the repository for word segmentation in sanskrit using energy based models. # Word Segmentation in Sanskrit Using Energy Based Models ## Getting Started Please download the 2 compressed files 'dir.zip' and 'wordsegmentation.rar' to your working directory and extract them into folders named 'dir' and 'wordsegmentation' respectively. Your working directory should be as follows * Working Directory * wordsegmentation * skt_dcs_DS.bz2_4K_bigram_mir_10K * skt_dcs_DS.bz2_4K_bigram_mir_heldout * dir ## Prerequisites * Python3 * scipy * numpy * csv * pickle * multiprocessing * bz2 ## Instructions for Training Change your current directory to 'dir' Run the file Train_clique.py by using the following command * python Train_clique.py To train on different input features like BM2,BM3,BR2,BR3,PM2,PM3,PR,PR3 please modify the bz2_input_folder value in the main function before beginning the training. Feature | bz2_input_folder ------------- | ------------- BM2 | wordsegmentation/skt_dcs_DS.bz2_4K_bigram_mir_10K/ BM3 | wordsegmentation/skt_dcs_DS.bz2_1L_bigram_mir_10K BR2 | wordsegmentation/skt_dcs_DS.bz2_4K_bigram_rfe_10K/ BR3 | wordsegmentation/skt_dcs_DS.bz2_1L_bigram_rfe_10K/ PM2 | wordsegmentation/skt_dcs_DS.bz2_4K_pmi_mir_10K/ PM3 | wordsegmentation/skt_dcs_DS.bz2_1L_pmi_mir_10K2/ PR2 | wordsegmentation/skt_dcs_DS.bz2_4K_pmi_rfe_10K/ PR3 | wordsegmentation/skt_dcs_DS.bz2_1L_pmi_rfe_10K/ ## Instructions for Testing After training, please modify the 'modelList' dictionary in 'test_clique.py' with the name of the neural network that has been saved during training. While testing for a feature, please provide the name of the neural net which was trained for the same feature. We only provide the trained model for the feature BM2 which was our best performing feature. If the name of the neural net is not changed, then the testing will be performed on the pre-trained model for BM2 provided in outputs/train_t7978754709018 To test with a particular feature vector use the tag of the feature while execution * python test_clique.py -t <tag> For example: * python test_clique.py -t BM2 After finishing the testing please run the following command to see the precision and recall values for both the word and word++ prediction tasks * python evaluate.py <tag> For example: * python evaluate.py BM2</dc:description> <dc:identifier>https://zenodo.org/record/1035413</dc:identifier> <dc:identifier>10.5281/zenodo.1035413</dc:identifier> <dc:identifier>oai:zenodo.org:1035413</dc:identifier> <dc:relation>doi:10.5281/zenodo.1035412</dc:relation> <dc:relation>url:https://zenodo.org/communities/cnerg</dc:relation> <dc:rights>info:eu-repo/semantics/openAccess</dc:rights> <dc:rights>https://creativecommons.org/licenses/by/4.0/legalcode</dc:rights> <dc:title>Word Segmentation in Sanskrit Using Energy Based Models</dc:title> <dc:type>info:eu-repo/semantics/other</dc:type> <dc:type>software</dc:type> </oai_dc:dc>
All versions | This version | |
---|---|---|
Views | 653 | 654 |
Downloads | 531 | 531 |
Data volume | 13.0 TB | 13.0 TB |
Unique views | 609 | 610 |
Unique downloads | 248 | 248 |