Commit 5ae2b100 authored by bguillaum's avatar bguillaum

handle root edges as usual edges (to deal with S:root, D:root)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/semagramme/libcaml-grew/trunk@8322 7838e531-6607-4d57-9587-6c381814729c
parent 605c253d
......@@ -355,7 +355,7 @@ module G_graph = struct
List.fold_left
(fun acc2 (gov, dep_lab) ->
let gov_id = Id.build ?loc gov table in
let edge = if gov = "0" then G_edge.root else G_edge.make ?loc dep_lab in
let edge = G_edge.make ?loc dep_lab in
(match map_add_edge acc2 (Gid.Old gov_id) edge (Gid.Old dep_id) with
| Some g -> g
| None -> Error.build "[GRS] [Graph.of_conll] try to build a graph with twice the same edge %s %s"
......
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