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

creation of OPENNLP-855 contributed by amensiko #3

Closed
wants to merge 1,325 commits into from

Conversation

amensiko
Copy link

@amensiko amensiko commented Jul 3, 2016

Sentiment Analysis Parser

kottmann and others added 30 commits March 12, 2014 11:12
…ly and returns instantiated Artifact Serializers instead.

git-svn-id: https://svn.apache.org/repos/asf/opennlp/trunk@1576746 13f79535-47bb-0310-9956-ffa450edef68
…to Rodrigo Agerri for providing a patch.

git-svn-id: https://svn.apache.org/repos/asf/opennlp/trunk@1576767 13f79535-47bb-0310-9956-ffa450edef68
…unction as a throw-ed error.

git-svn-id: https://svn.apache.org/repos/asf/opennlp/trunk@1580131 13f79535-47bb-0310-9956-ffa450edef68
@chrismattmann
Copy link
Contributor

chrismattmann commented Jul 3, 2016

thanks @amensiko great initial start. Couple things jump out:

  1. remove all DS_Store files
  2. we need to change the package names for the OpenNLP stuff to be o.a.opennlp and remove the edu.usc.ir stuff

I can help with this. @kottmann can I get commit access to Apache OpenNLP so I can help out?

@chrismattmann
Copy link
Contributor

Good work removing the DS_Store. The next step would be to take out the edu.usc.ir stuff, and simply add a pom dependency to the SentimentAnalysiParser USC Central repo jar.

@kottmann
Copy link
Member

kottmann commented Jul 4, 2016

Thanks for the nice work!

I also have a few comments:

  • There should be an interface for the Sentiment Analysis Parser e.g. similar to TokenNameFinder or POSTagger. We need this so it is possible to have other implementations of it as well in the future.
  • OpenNLP has a command line interface, it would be nice if you could integrate into it.
  • SentimentSample should have a toString method, and it should print the sample in the default format (so it can be read in again for training)
  • We need evaluation support to know how well it performs (otherwise it can't be improved).
  • It would be nice to have tests, especially one which trains and evaluates the performance
  • All files in the pull request should have AL headers if possible (e.g. all Java source files)
  • In OpenNLP all source files end with a new line

At some point we have to address all of the above, I think it makes sense to get the code quickly into OpenNLP Tools and then continue working on it over there.

I suggest you now do all the changes which can be done quickly and for the ones which take more time you create issues in jira.

@amensiko amensiko force-pushed the OPENNLP-855 branch 2 times, most recently from 86f6771 to 534027e Compare July 4, 2016 19:09
@chrismattmann
Copy link
Contributor

Great work @amensiko and great comments @kottmann +1

public SentimentSample read() throws IOException {
SentimentSample sample = samples.read();

// if (sample != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove any commented out code like this

@chrismattmann
Copy link
Contributor

Great work @amensiko I'll take a look here. Can you see my latest comments too.

@amensiko
Copy link
Author

Yes @chrismattmann ! Just fixed it.

@chrismattmann
Copy link
Contributor

thanks @amensiko !

@kottmann
Copy link
Member

kottmann commented Jan 8, 2017

@amensiko could you update this PR for us? It would be nice to get this merged.

@amensiko
Copy link
Author

amensiko commented Jan 8, 2017

@kottmann I've been having some trouble with it. I'll try to finish it as soon as I figure it out

@kottmann
Copy link
Member

kottmann commented Jan 8, 2017

Do you have some questions or need some help?

@amensiko
Copy link
Author

amensiko commented Jan 9, 2017

@kottmann I'm having trouble merging it. Maybe you have some advice?

@kottmann
Copy link
Member

kottmann commented Jan 9, 2017

Shouldn't be difficult. As far as I can see you only get conflicts in CLI.java and TokenNameFinderTrainerTool.java. The later one shouldn't be changed by you anyway (so this one I would remove from your commit).

I would do it like this:

  1. Get the upstream master branch

  2. Remove changes to TokenNameFinderTrainerTool.java from your commits or make a new commit to undo the changes you did, e.g.:
    git checkout 4fb05c7 opennlp-tools/src/main/java/opennlp/tools/cmdline/namefind/TokenNameFinderTrainerTool.java
    and then commit that version.

  3. Rebase your branch onto master

  4. send us a new PR against master (I think you can't update this one)

@asfgit asfgit closed this Jan 10, 2017
@kottmann
Copy link
Member

Sorry for this, we switched from trunk to master branch, and the deletion of the trunk branch closed this PR. Please send us a new PR based on your branch against the new master branch.

maximestein pushed a commit to maximestein/opennlp that referenced this pull request Jan 7, 2019
…ool-close-failure-in-OpenNLP-GIS-class

TEC-1918 - updated pom to reflect chang in release name
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.

7 participants