Commit 272ea0533e5eb8036aaa8a58af03954893a2649b

Authored by Wojciech Jaworski
1 parent ec7e8588

semantyka z dep trees

diagnostics/treeChange.ml
... ... @@ -23,10 +23,10 @@ let correct_coordination paths tokens =
23 23 let paths_ls = List.mapi (fun i (id,super,label) ->
24 24 (i,id,super,label)) (Array.to_list paths) in
25 25  
26   - let ps a sons =
  26 + (* let ps a sons =
27 27 print_endline a;
28 28 List.iter (fun (i,_,_,_) -> print_endline (ExtArray.get tokens i).orth) sons;
29   - print_endline "" in
  29 + print_endline "" in *)
30 30  
31 31 let rec correct_rec (i,id,super,label) sons =
32 32 let left_s, right_s = List.partition (fun (a,b,c,d) -> a < i) sons in
... ...
parser/.gitignore
1 1 pipe
2 2 swigra_test
3 3 results/*
  4 +parser2.cgi
  5 +server2
... ...
parser/LCGvalence.ml
... ... @@ -227,7 +227,7 @@ let match_args modifications nodes e i t = function
227 227  
228 228 let rec assign_frames_and_senses_rec modifications valence nodes t =
229 229 (* printf "pred=%s id=%d\n" t.pred t.id; *)
230   - if t.id = 0 then failwith ("assign_frames_and_senses_rec: t.id=0 pred=" ^ t.pred) else
  230 + (* if t.id = 0 then failwith ("assign_frames_and_senses_rec: t.id=0 pred=" ^ t.pred) else *) (* FIXME: zbadać po co było to zabezpieczenie *)
231 231 let e,node_valence = select_frames ((*if t.id >= Array.length valence then create_pro_frames t else*) valence.(t.id)) t in
232 232 let node_valence = if node_valence <> [] then node_valence else ["1",(t.pred,StringSet.empty,0.,"","",Frame(EmptyAtrs[],[]))] in
233 233 let l = Xlist.map node_valence (fun (i,(meaning,hipero,weight,lrole,lrole_attr,frame)) ->
... ...