diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-08-12 23:36:44 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-08-12 23:36:44 -0400 |
commit | 81ac6ea30c1105693e9d6886eff686908180d7b9 (patch) | |
tree | a28ea17bfac39fd5e7984c13cdc0a74bd7d6e50d /decoder/hg_intersect.cc | |
parent | 1807f30edc1ff02f908436d38cc8f5ca513c9908 (diff) |
redefine HG
Diffstat (limited to 'decoder/hg_intersect.cc')
-rw-r--r-- | decoder/hg_intersect.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/decoder/hg_intersect.cc b/decoder/hg_intersect.cc index e9a91061..ad5b701a 100644 --- a/decoder/hg_intersect.cc +++ b/decoder/hg_intersect.cc @@ -79,7 +79,9 @@ static bool FastLinearIntersect(const Lattice& target, Hypergraph* hg) { return (cov.size() == target.size()); } -bool HG::Intersect(const Lattice& target, Hypergraph* hg) { +namespace HG { + +bool Intersect(const Lattice& target, Hypergraph* hg) { // there are a number of faster algorithms available for restricted // classes of hypergraph and/or target. if (hg->IsLinearChain() && target.IsSentence()) @@ -160,3 +162,5 @@ bool HG::Intersect(const Lattice& target, Hypergraph* hg) { return true; } +} + |