Changeset e7de6cc for src/dgp/main.cc
- Timestamp:
- 02/21/12 20:02:51 (13 years ago)
- Branches:
- master
- Children:
- b242df2
- Parents:
- 354ba3d
- git-author:
- Tomasz Obrebski <to@…> (02/21/12 20:02:51)
- git-committer:
- Tomasz Obrebski <to@…> (02/21/12 20:02:51)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/dgp/main.cc
r5f4d9c3 re7de6cc 11 11 #include "sgraph.hh" 12 12 #include "grammar.hh" 13 #include "dgp 0.hh"13 #include "dgp1.hh" 14 14 #include "../common/common.h" 15 15 #include "cmdline.h" … … 25 25 Grammar grammar; 26 26 MGraph mgraph; 27 SGraph sgraph ;27 SGraph sgraph(mgraph); 28 28 29 29 FILE* grammarf; … … 65 65 fclose(grammarf); 66 66 67 68 69 // grammar.write(cout); 70 // exit(0); 71 72 73 67 74 mgraph.clear(); 68 75 sgraph.clear(); … … 83 90 if(strcmp(segtype,"EOS")==0) 84 91 { 85 dgp 0(); // parametry!!! MGraph, SGraph, Grammar92 dgp1(); // parametry!!! MGraph, SGraph, Grammar 86 93 output(); 87 94 … … 105 112 if(seg_mnode[si]>=0) 106 113 { 107 MNode& m=mgraph .nodes[seg_mnode[si]];114 MNode& m=mgraph[seg_mnode[si]]; 108 115 for(vector<int>::iterator s=m.snodes.begin(); s!=m.snodes.end(); ++s) 109 116 {
Note: See TracChangeset
for help on using the changeset viewer.