Skip to content
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

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Curiousite
Copy link
Contributor

@Curiousite Curiousite commented Apr 15, 2019

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.

Copy link
Owner

@gerardobort gerardobort left a 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",
Copy link
Owner

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

Copy link
Contributor Author

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,
Copy link
Owner

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,
Copy link
Owner

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,
Copy link
Owner

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 {
Copy link
Owner

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 {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@Curiousite
Copy link
Contributor Author

Thanks for the great advice! The problems you've mentioned are fixed now. I'll probably get to dive into natlog on the weekend. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Added support for natlog and OpenIE
3 participants