summaryrefslogtreecommitdiff
path: root/python/cdec/hypergraph.pxi
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-01-13 04:44:53 -0800
committerChris Dyer <redpony@gmail.com>2014-01-13 04:44:53 -0800
commit0ddc951bc8990c1253e6a873848ed69321615e0a (patch)
treebedf7fae11a13b181e64f3dc3e5ab562b7bed74f /python/cdec/hypergraph.pxi
parentc148f8429c66103a401ba4c3a029e349cd11aa8a (diff)
parentb60df3ce6c1a509f52fb19703963caefcfc9859b (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.pxi4
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