Commit 797330bf authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

unfold version of AMR graphs

parent 4d6ab972
......@@ -90,7 +90,7 @@ module Corpus = struct
let items =
Array.map
(fun (sent_id, amr) ->
let json = Amr.to_json amr in
let json = Amr.to_json ~unfold:true amr in
let graph = G_graph.of_json json in
let text = match G_graph.get_meta_opt "text" graph with Some t -> t | None -> "__missing text metadata__" in
{ sent_id; text; graph }
......@@ -462,7 +462,7 @@ module Corpus_desc = struct
in
CCArray.filter_map (fun (sent_id,amr) ->
try
let json = Amr.to_json amr in
let json = Amr.to_json ~unfold:true amr in
let graph = G_graph.of_json json in
let text = match G_graph.get_meta_opt "text" graph with Some t -> t | None -> "__missing text metadata__" in
Some {Corpus.sent_id; text; graph }
......
Supports Markdown
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