-
Notifications
You must be signed in to change notification settings - Fork 39
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
Svm context engine #635
base: master
Are you sure you want to change the base?
Svm context engine #635
Conversation
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
… the bug was arising. Hopefully, this patch does it.
@ShraddhaThumsi , Travis is reporting some of the tests failing because it's searching for a file hardcoded to a path in your computer For example: That is not the only one, please take a look into Travis' build log to find all the pertinent file paths. Can you fix those, please? |
…to SVMContextEngine
… to prepare the path to the temporary .dat file
…heck on the functionality of the code itself.
… test code. Next up: merging with SVMContextEngine.
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.
Just some minor clean up requests and I think its ready
main/build.sbt
Outdated
@@ -35,6 +37,8 @@ libraryDependencies ++= { | |||
// testing | |||
"org.scalatest" %% "scalatest" % "3.0.1" % "test", | |||
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test" | |||
//"org.ml4ai" %% "scalacontext" % "0.1.0-SNAPSHOT" |
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 erase this commented line
# the output formats for mentions: | ||
# "arizona" (column-based, one file per paper) | ||
# "cmu" (column-based, one file per paper) | ||
# "fries" (multiple JSON files per paper) | ||
# "serial-json" (JSON serialization of mentions data structures. LARGE output!) | ||
# "text" (non-JSON textual format) | ||
outputTypes = ["fries"] | ||
outputTypes = ["fries", "arizona", "cmu", "serial-json", "text"] |
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 restore this setting to its original value
…Will make another commit for that, and I'll be ready to push it
…. have been attended to. The log file is deleted.
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.
It looks good now
@MihaiSurdeanu let me know if you want to take a look, otherwise I consider this is ready to be merged. |
Thank you!
…On Sat, Sep 28, 2019 at 2:08 PM Enrique Noriega ***@***.***> wrote:
@MihaiSurdeanu <https://github.com/MihaiSurdeanu> let me know if you want
to take a look, otherwise I consider this is ready to be merged.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#635?email_source=notifications&email_token=AFJCRMPWCJF255ZMT5IBL2DQL7BTHA5CNFSM4IXGAD7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73COWI#issuecomment-536225625>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFJCRMJ6NGURZIENW4VK27LQL7BTHANCNFSM4IXGAD7A>
.
|
@enoriega, @ShraddhaThumsi, @cl4yton: this PR was never merged. |
@MihaiSurdeanu This pull request contains @ShraddhaThumsi 's implementation of the SVM context engine, a training script for a linear SVM and ensures no unit test is broken. You requested to hold back from merging because the validation of the trained model is still pending. |
Thanks!
On March 7, 2020 at 3:30:08 PM, Enrique Noriega ([email protected]) wrote:
@MihaiSurdeanu <https://github.com/MihaiSurdeanu> This pull request
contains @ShraddhaThumsi <https://github.com/ShraddhaThumsi> 's
implementation of the SVM context engine, a training script for a linear
SVM and ensures no unit test is broken. You requested to hold back from
merging because the validation of the trained model is still pending.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#635?email_source=notifications&email_token=AAI75TQJ77NSOVLHFFGCIMDRGLDG7A5CNFSM4IXGAD7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOEG6KI#issuecomment-596143913>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI75TUHJDDO7ZKU7Q6JNWDRGLDG7ANCNFSM4IXGAD7A>
.
|
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.
I have merged master into this branch and all tests are currently passing. I have asked @enoriega to do another pass, and also added @MihaiSurdeanu to also review. I do not have authority to complete the pull request.
@enoriega: please let me know when you're done, and I'll do a pass too. |
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.
It looks good. All tests pass
I think this is okay, however, I wonder if you want to merge until I write the README for the SVMContextEngine and co. As long as you select the Policy4 context engine, nothing should be affected after the merge |
Thanks @enoriega ! I'll wait for the README. Please let me know when it's available. |
…onfigure the SVMContextEngine in application.conf
@enoriega, @ShraddhaThumsi, @cl4yton: ENRIQUE: By doing this I detected two annoying details I didn’t realize back then, but fortunately they’re easy to fix. The first is that the svm model file is hard coded and can’t be changed in the config file. The second is that there’s a file that specifies a subset of features to use for training. This file is supposed to be a text file but instead is a serialized java string. This should be simple to solve too. The features file is a product of the experiments Paul Hein ran for the paper. It is not a raw data file because several attempts that Shraddha made to generate it generated different results and instead of following that unreliable approach we decided to use the same file as before to aim to get the same results, and then go back into the feature parser code. MIHAI:
|
Do I dare ask for an update? March 2020 was a long time ago. At the very least I need to resolve the merge conflicts that have developed in the interim. It's also very possible to keep a parallel branch around and not ever merge into master, but then to close the PR. There may be other users who now are concerned with the repercussions of these changes. |
Still in progress... But I hope that @enoriega will wrap this up once he starts his new position. |
I'll take over it |
Preparing to merge SVMContextEngine to master