diff options
| author | Chris Dyer <redpony@gmail.com> | 2015-03-03 01:14:07 -0500 | 
|---|---|---|
| committer | Chris Dyer <redpony@gmail.com> | 2015-03-03 01:14:07 -0500 | 
| commit | 95183b5760d7f168ae093ae8f9b29740628a278f (patch) | |
| tree | 4c213e940a80a08d60141d11ec35cbe8f17d4755 /decoder/tree_fragment.cc | |
| parent | c7b2a39958912d7b85a384a871609e6db73042c7 (diff) | |
migration to cmake
Diffstat (limited to 'decoder/tree_fragment.cc')
| -rw-r--r-- | decoder/tree_fragment.cc | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/decoder/tree_fragment.cc b/decoder/tree_fragment.cc index 5f717c5b..ff406adf 100644 --- a/decoder/tree_fragment.cc +++ b/decoder/tree_fragment.cc @@ -79,7 +79,7 @@ void TreeFragment::ParseRec(const StringPiece& tree, bool afs, unsigned cp, unsi      cerr << "Expected ( at " << cp << endl;      abort();    } -  const unsigned i = symp; +  // const unsigned i = symp;    vector<unsigned> rhs; // w | 0 = terminal, w | NT_BIT, index | FRONTIER_BIT    ++cp;    while(tree[cp] == ' ') { ++cp; } @@ -119,7 +119,7 @@ void TreeFragment::ParseRec(const StringPiece& tree, bool afs, unsigned cp, unsi        }       }    } // continuent has completed, cp is at ), build node -  const unsigned j = symp; // span from (i,j) +  // const unsigned j = symp; // span from (i,j)    // add an internal non-terminal symbol    const unsigned nt = TD::Convert(tree.substr(nt_start, nt_end - nt_start).as_string()) | RHS_BIT;    nodes[np] = TreeFragmentProduction(nt, rhs); | 
