Closed BramVanroy closed 1 year ago
Great suggestion. Examples of how to do what you're interested in are now, since commit 7d0d642, in Example I and for optimal matching in Example II.
The functions you mentioned are accessible as
measure.score_pair
and
measure.score_corpus
It seems that only the first is described currently in the README, I will add some information on how to score corpus, too, so leaving this open.
Thank you, that looks great! Looking forward to using it from a new PyPi release.
Description on pair matching/scoring is now in Examples I, II and III. Description for corpus scoring like in score.sh
but from python interface is in Example IV.
[edit: fix format]
This looks exactly like what I need. Thank you so much! Feel free to close this topic.
Thanks for this library!
It would be great if the API had some easy access point for scoring in Python, like
score(graph_a: str, graph_b: str)
: scoring two penman graphs against each otherscore_all(graphs_a: List[str], graphs_b: List[b])
: scoring two corpora against each otherThat should make it easier to use the library during machine learning experiments, for instance. It is currently not clear how that can be done.
There are some Python examples here but for someone who does not know the implementation details it is hard to know what to use. In other words, how can I do the same commands as written here but directly in Python and not with files but with in-memory objects (lists of penmans)?
Thanks