Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
flipz357 committed Dec 5, 2023
1 parent 2a80a8d commit a3129a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Beyond basic defaults, we need an ILP solver for best alignment and dereificatio

```python
from smatchpp import Smatchpp, solvers, preprocess
graph_standardizer = preprocess.AMRStandardizer(syntactic_standardization="dereify")
graph_standardizer = preprocess.AMRStandardizer()
ilp = solvers.ILP()
measure = Smatchpp(alignmentsolver=ilp, graph_standardizer=graph_standardizer)
score = measure.score_pair("(m / man :accompanier (c / cat))", "(m / man :arg1-of (a / accompany-01 :arg0 (c / cat)))") # equivalent AMR graphs
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='smatchpp',
version='1.5.1',
version='1.5.0',
description='A Python package for graph processing',
url='https://github.com/flipz357/smatchpp',
author='Juri Opitz',
Expand Down
4 changes: 2 additions & 2 deletions smatchpp/data_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def _gather(self, triples, node, v2c, printed_triples):


@staticmethod
def get_childs(triples, node):
def _get_triples_where_node_is_child(triples, node):
"""Get all triples where node is the source
Args:
Expand All @@ -344,7 +344,7 @@ def get_childs(triples, node):


@staticmethod
def get_possible_childs(triples, node):
def _get_triples_where_node_could_be_made_child(triples, node):
"""Get all triples where node is the target
These triples are incoming relations, but could be converted
Expand Down
2 changes: 1 addition & 1 deletion smatchpp/model_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_standardizer(cls, uri):
elif uri == "amr":
return preprocess.AMRStandardizer()
elif uri == "generic":
returnpreprocess.GenericStandardizer()
return preprocess.GenericStandardizer()

raise NotImplementedError("Preprocessor for uri {} not implemented".format(uri))

Expand Down

0 comments on commit a3129a5

Please sign in to comment.