diff options
author | Chris Dyer <redpony@gmail.com> | 2014-01-13 04:44:53 -0800 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-01-13 04:44:53 -0800 |
commit | 7a9c1c85fecb787b1ee4b8e9552ed35a635e3c39 (patch) | |
tree | a47a7ad4e51fb95a3c98f657b0b82a3e9660c966 /python/cdec/hypergraph.pxi | |
parent | a1cf0d10fe44ede32d29be37107884b734d459ae (diff) | |
parent | 757ffb75e9a860ccd10843dcf099787cefec781a (diff) |
Merge pull request #36 from pks/master
RuleWordAlignmentFeatures, minor dtrain changes
Diffstat (limited to 'python/cdec/hypergraph.pxi')
-rw-r--r-- | python/cdec/hypergraph.pxi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/cdec/hypergraph.pxi b/python/cdec/hypergraph.pxi index 4a709d32..91cc8eec 100644 --- a/python/cdec/hypergraph.pxi +++ b/python/cdec/hypergraph.pxi @@ -252,6 +252,10 @@ cdef class HypergraphNode: self.node = &hg.nodes_[i] return self + property id: + def __get__(self): + return self.node.id_ + property in_edges: def __get__(self): cdef unsigned i |