Conversation
|
Just a suggestion on how to write good commit messages: https://cbea.ms/git-commit/ |
|
Do you still support json or is it only tsv now? |
| rule_set.to_tsv(path) | ||
| else: | ||
| raise ValueError("Unknown file extension, currently only .json and .tsv are supported") | ||
| raise ValueError( |
There was a problem hiding this comment.
Add black as commit hook? :P
There was a problem hiding this comment.
Yes, will do that, thanks :)
| ["(u_0 / find :obl (u_1 / .*) :obj (u_2 / .*))"], | ||
| [], | ||
| "FIND", | ||
| [{"ARG1": 1, "ARG2": 2}], |
There was a problem hiding this comment.
@Eszti New arguments for OpenIE, you can find examples in https://github.com/adaamko/POTATO/blob/dev/notebooks/openie.ipynb
| self._dataset = self.read_dataset(path=path, binary=binary) | ||
| else: | ||
| self._dataset = self.read_dataset(examples=examples) | ||
| self.extractor = GraphExtractor(lang=lang, cache_fn=f"{lang}_nlp_cache") |
There was a problem hiding this comment.
I suggest you leave an option for the cache_fn to be configured from outside
| ] | ||
| if len(g) > 1: | ||
| print( | ||
| "WARNING: graph has multiple connected components, taking the largest" |
There was a problem hiding this comment.
what about Kinga's solution for representing multiple connected components in penman? Is it too soon to use that?
There was a problem hiding this comment.
I think currently we don't have a good solution for the issue, but correct me if I'm wrong @GKingA
| else: | ||
| raise ValueError("No examples or path provided") | ||
|
|
||
| # ADAM: THIS WILL NEED TO BE ADDRESSED |
There was a problem hiding this comment.
what is this about? Maybe open an issue and reference it in the comment
@Eszti Thank you for the suggestion, I will also check it :) |
close #39
close #26