-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Feat/natlog and open ie #52
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good so far. Thanks for your time, and helping improve this library!
Just a recommendation: if you can, please follow https://www.conventionalcommits.org/en/v1.0.0-beta.2/ for the commit messages. Not a problem anyways... I'd squash and merge to master, making sure the final commit follows that standard. I have pending to add CONTRIBUTING.md
.
"lint:fix": "npm run lint -- --fix", | ||
"test": "nyc --reporter=html --reporter=text mocha test/setup.js --sort 'src/**/*.spec.js' --compilers js:babel-core/register --timeout 30000", | ||
"test": "nyc --reporter=html --reporter=text mocha test/setup.js --sort \"src/**/*.spec.js\" --compilers js:babel-core/register --timeout 30000", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, make sure this doesn't come as new change, since it was introduced by #51 ... rebasing your branch with the latest master HEAD should do the trick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, thats great. I never had a concrete use-case for git rebase and therefore probably never really understood it. Thanks for changing that. 😄
@@ -58,6 +60,8 @@ export default { | |||
RelationExtractorAnnotator, | |||
RegexNERAnnotator, | |||
CorefAnnotator, | |||
NaturalLogicAnnotator, | |||
OpenIEAnnotator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please, use the same order as for the import statements (that's OCD 😆I know).
@@ -73,6 +75,8 @@ describe('CoreNLP Library entry point', () => { | |||
RelationExtractorAnnotator, | |||
RegexNERAnnotator, | |||
CorefAnnotator, | |||
NaturalLogicAnnotator, | |||
OpenIEAnnotator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: same here, let's follow the same order.
@@ -30,6 +32,8 @@ const ANNOTATORS_BY_KEY = { | |||
relation, | |||
regexner, | |||
coref, | |||
natlog, | |||
openie, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: and here
* @requires tokenize, ssplit, pos, lemma, depparse (Can also use parse) | ||
* @see {@link https://stanfordnlp.github.io/CoreNLP/natlog.html|NaturalLogicAnnotator} | ||
*/ | ||
class NaturalLogicAnnotator extends Annotator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
* @requires natlog | ||
* @see {@link https://stanfordnlp.github.io/CoreNLP/openie.html|OpenIEAnnotator} | ||
*/ | ||
class OpenIEAnnotator extends Annotator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Thanks for the great advice! The problems you've mentioned are fixed now. I'll probably get to dive into natlog on the weekend. 🎉 |
This aims to close #50.
Uploading this as a work in progress, since natlog is not complete, yet. @gerardobort maybe you can take a quick look and check if I am working in the right direction.