Commit d82eaf3b authored by Bruno Guillaume's avatar Bruno Guillaume

adapt to lib (new Libgrew submodule)

parent e793c76b
......@@ -49,7 +49,7 @@ module Grew_args = struct
"-max_depth_non_det", Int (fun v -> Rewrite.set_max_depth_non_det v), "<int> set the maximum depth of rewriting in a module in non-deterministric rewriting (default: 100)";
"-features", String (fun s -> features := Some (Str.split (Str.regexp "; *") s)), "<feat_name_list> set the list of feature names to printf in dep format";
"-main_feat", String (fun s -> main_feat := Some s), "<feat_name_list> set the list of feature names used in dep format to set the \"main word\"";
"-debug", Unit (fun () -> libgrew_debug_mode ()), " enable debug mode";
"-debug", Unit (fun () -> Libgrew.set_debug_mode true), " enable debug mode";
"-debug_loop", Unit (fun () -> Rewrite.set_debug_loop ()), " enable loop debug mode";
"-fullscreen", Unit (fun () -> fullscreen := true), " fullscreen";
"-i", String (fun file -> input_data := Some file), "<input_data> set the input data (file or directory) where to find graph files (.gr or .conll) in corpus or det mode";
......
......@@ -363,7 +363,7 @@ let init () =
| (_, false) ->
grew_window#btn_run#misc#set_sensitive false;
ignore (nc#push "The current strategy is not deterministic (cannot be used in GUI)")
with Error s ->
with Libgrew.Error s ->
grew_window#btn_run#misc#set_sensitive false;
ignore (nc#push ("Cannot parse strategy: "^s))
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment