{"action":"closed","issue":{"url":"https://api.github.com/repos/EducationalTestingService/discourse-parsing/issues/42","labels_url":"https://api.github.com/repos/EducationalTestingService/discourse-parsing/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/EducationalTestingService/discourse-parsing/issues/42/comments","events_url":"https://api.github.com/repos/EducationalTestingService/discourse-parsing/issues/42/events","html_url":"https://github.com/EducationalTestingService/discourse-parsing/issues/42","id":94522420,"number":42,"title":"tune_segmentation_model fails because of missing segmentation_model file","user":{"login":"arne-cl","id":994109,"avatar_url":"https://avatars.githubusercontent.com/u/994109?v=3","gravatar_id":"","url":"https://api.github.com/users/arne-cl","html_url":"https://github.com/arne-cl","followers_url":"https://api.github.com/users/arne-cl/followers","following_url":"https://api.github.com/users/arne-cl/following{/other_user}","gists_url":"https://api.github.com/users/arne-cl/gists{/gist_id}","starred_url":"https://api.github.com/users/arne-cl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arne-cl/subscriptions","organizations_url":"https://api.github.com/users/arne-cl/orgs","repos_url":"https://api.github.com/users/arne-cl/repos","events_url":"https://api.github.com/users/arne-cl/events{/privacy}","received_events_url":"https://api.github.com/users/arne-cl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-12T01:23:59Z","updated_at":"2015-07-12T20:56:24Z","closed_at":"2015-07-12T20:56:24Z","body":"After running `extract_segmentation_features`, I couldn't get `tune_segmentation_model` to work.\r\n\r\n```python\r\n/opt/discourse-parsing# tune_segmentation_model rst_discourse_tb_edus_features_TRAINING_TRAIN.tsv rst_discourse_tb_edus_features_TRAINING_DEV.tsv segmentation_model\r\nCRF++: Yet Another CRF Tool Kit\r\nCopyright (C) 2005-2013 Taku Kudo, All rights reserved.\r\n\r\nreading training data: tagger.cpp(393) [feature_index_->buildFeatures(this)] \r\n0.00 s\r\n\r\n\r\nfeature_index.cpp(193) [mmap_.open(model_filename)] mmap.h(153) [(fd = ::open(filename, flag | O_BINARY)) >= 0] open failed: segmentation_model.C0.015625\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/tune_segmentation_model\", line 9, in <module>\r\n    load_entry_point('discourseparsing==0.2.1', 'console_scripts', 'tune_segmentation_model')()\r\n  File \"/usr/local/lib/python3.3/dist-packages/discourseparsing-0.2.1-py3.3.egg/discourseparsing/tune_segmentation_model.py\", line 92, in main\r\n  File \"/usr/lib/python3.3/subprocess.py\", line 589, in check_output\r\n    raise CalledProcessError(retcode, process.args, output=output)\r\nsubprocess.CalledProcessError: Command '['crf_test', '-m', 'segmentation_model.C0.015625', 'rst_discourse_tb_edus_features_TRAINING_DEV.tsv']' returned non-zero exit status 255\r\n```\r\n\r\nThe problem seems to be that `crf_learn` doesn't create any segmentation_model files in the first place (but doesn't give any error message either):\r\n\r\n```\r\n/opt/discourse-parsing# crf_learn -v\r\nCRF++ of 0.58\r\n\r\n/opt/discourse-parsing# crf_learn segmentation_crfpp_template.txt rst_discourse_tb_edus_features_TRAINING_TRAIN.tsv segmentation_model.C0.015625 -c 0.015625\r\nCRF++: Yet Another CRF Tool Kit\r\nCopyright (C) 2005-2013 Taku Kudo, All rights reserved.\r\n\r\nreading training data: tagger.cpp(393) [feature_index_->buildFeatures(this)] \r\n0.00 s\r\n```"}}