Minor fix in sevenize_my_conf_plz.
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/39f84855 Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/39f84855 Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/39f84855 Branch: refs/heads/7_confsystem Commit: 39f84855d988c3a60f07a79acbe9395e0501cb2b Parents: 14ede56 Author: Michael A. Hedderich <michael-al...@users.noreply.github.com> Authored: Mon Sep 19 10:19:33 2016 +0200 Committer: Michael A. Hedderich <michael-al...@users.noreply.github.com> Committed: Mon Sep 19 10:19:33 2016 +0200 ---------------------------------------------------------------------- scripts/compat/sevenize_my_conf_plz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/39f84855/scripts/compat/sevenize_my_conf_plz.py ---------------------------------------------------------------------- diff --git a/scripts/compat/sevenize_my_conf_plz.py b/scripts/compat/sevenize_my_conf_plz.py index ccdf036..6f2f1b0 100755 --- a/scripts/compat/sevenize_my_conf_plz.py +++ b/scripts/compat/sevenize_my_conf_plz.py @@ -93,7 +93,7 @@ for line in sys.stdin: features.append('class = %s, lm_type = %s, lm_order = %s, lm_file = %s' % (className, lm_type, order, path)) - elif line.startswith('feature-function'): + elif line.startswith('feature-function') or line.startswith('feature_function'): _, feature = re.split(r'\s*=\s*', line, 1) features.append(parse_args_to_string(feature))