Commit c7ffc872 authored by Bruno Guillaume's avatar Bruno Guillaume

remove “fix_rule_name”

parent f85f36cc
......@@ -58,7 +58,7 @@ module Grew_rew_display = struct
let to_grfile_graph graph_id output_file =
save output_file (to_grstring_graph graph_id)
let to_conll_graph graph_id =
let to_conll_graph graph_id = (* TODO: handle cupt format *)
Graph.to_conll_string (get_graph graph_id)
let save_conll_graph graph_id output_file =
......@@ -648,8 +648,6 @@ module Grew_rew_display = struct
current_selected_mod := module_name;
let first_graph = fst (List.assoc first_graph_name !graph_map) in
let fix_rule_name n = Str.global_replace (Str.regexp "-") "_" n in
match bs with
| None -> ""
| Some bs ->
......@@ -672,7 +670,7 @@ module Grew_rew_display = struct
add (Printf.sprintf " G%d [style=filled, fillcolor=\"%s\", label=G%d]" !graph_counter top_color !graph_counter);
add (Printf.sprintf " node_mod_%d0 [fontcolor=transparent, color=transparent]" !graph_counter);
add (Printf.sprintf " node_mod_%d1 [label=\"%s\", color=transparent]" !graph_counter (fix_rule_name first_rule.Libgrew_types.rule_name));
add (Printf.sprintf " node_mod_%d1 [label=\"%s\", color=transparent]" !graph_counter first_rule.Libgrew_types.rule_name);
add (Printf.sprintf " node_mod_%d0 -> node_mod_%d1 [fontcolor=transparent, color=transparent]" !graph_counter !graph_counter);
add (Printf.sprintf " {rank=same;node_mod_%d0; G%d}" !graph_counter !graph_counter);
incr graph_counter;
......@@ -695,7 +693,7 @@ module Grew_rew_display = struct
add (Printf.sprintf " G%d -> G%d" (!graph_counter-1) !graph_counter);
add (Printf.sprintf " node_mod_%d0 [fontcolor=transparent, color=transparent]" !graph_counter);
add (Printf.sprintf " node_mod_%d1 [label=\"%s\", color=transparent]" !graph_counter (fix_rule_name r.Libgrew_types.rule_name));
add (Printf.sprintf " node_mod_%d1 [label=\"%s\", color=transparent]" !graph_counter r.Libgrew_types.rule_name);
add (Printf.sprintf " node_mod_%d1 -> node_mod_%d0 [fontcolor=transparent, color=transparent]" (!graph_counter-1) !graph_counter);
add (Printf.sprintf " node_mod_%d0 -> node_mod_%d1 [fontcolor=transparent, color=transparent]" !graph_counter !graph_counter);
add (Printf.sprintf " {rank=same;node_mod_%d0; G%d}" !graph_counter !graph_counter);
......
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