|
@@ -1585,7 +1585,7 @@ void SemSegContextTree::train ( const MultiDataset *md )
|
|
{
|
|
{
|
|
cout << ", feat: " << forest[tree][i].feat->writeInfos() << " ";
|
|
cout << ", feat: " << forest[tree][i].feat->writeInfos() << " ";
|
|
opOverview[forest[tree][i].feat->getOps() ]++;
|
|
opOverview[forest[tree][i].feat->getOps() ]++;
|
|
- contextOverview[depth][forest[tree][i].feat->getContext()]++;
|
|
|
|
|
|
+ contextOverview[forest[tree][i].depth][(int)forest[tree][i].feat->getContext()]++;
|
|
}
|
|
}
|
|
|
|
|
|
for ( int d = 0; d < ( int ) forest[tree][i].dist.size(); d++ )
|
|
for ( int d = 0; d < ( int ) forest[tree][i].dist.size(); d++ )
|
|
@@ -1915,7 +1915,7 @@ void SemSegContextTree::restore (std::istream & is, int format)
|
|
forest.push_back(tmptree);
|
|
forest.push_back(tmptree);
|
|
int nodes;
|
|
int nodes;
|
|
is >> nodes;
|
|
is >> nodes;
|
|
- cout << "nodes: " << nodes << endl;
|
|
|
|
|
|
+ //cout << "nodes: " << nodes << endl;
|
|
for(int n = 0; n < nodes; n++)
|
|
for(int n = 0; n < nodes; n++)
|
|
{
|
|
{
|
|
TreeNode tmpnode;
|
|
TreeNode tmpnode;
|