-
Notifications
You must be signed in to change notification settings - Fork 100
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
Basic CluProcessor
annotation fails for relatively simple operation
#548
Comments
Thanks @reynoldsm88 ! It seems to me that one dependency (the one that handles word embeddings) is not configured correctly. Because of its size, we store it on a local artifactory install, which must be added to the list of repos in the build file. Here is one build file that exemplifies this: https://github.com/clulab/habitus/blob/main/build.sbt I don't know if @kwalcock wants to add anything to this. |
@MihaiSurdeanu do we not need |
Not for the English CluProcessor, afaik.
…On Wed, Sep 8, 2021 at 13:25 Becky Sharp ***@***.***> wrote:
@MihaiSurdeanu <https://github.com/MihaiSurdeanu> do we not need
proc.tagPartsOfSpeech(doc) first?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#548 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAI75TVQ2RS4MJTVRJ47MEDUA7BCHANCNFSM5DVS4EGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
This seems to work. YMMV. It may be that the sanity check is overreacting if only lemmatize is going to be run. package org.clulab.processors.clu
import org.clulab.dynet.Utils
object LemmatizeApp extends App {
Utils.initializeDyNet()
val processor = new CluProcessor()
val doc = processor.mkDocument("counties")
processor.mkConstEmbeddings(doc)
processor.lemmatize(doc)
} |
Thanks for the quick response @kwalcock @MihaiSurdeanu and @BeckySharp! Keith's fix did the trick, everything is working as usual again. Do you want me to mark the issue as resolved? Otherwise, feel free to close it as resolved. |
Thanks @reynoldsm88 ! |
Description
I would like to use
CluProcessor
to go through a list of words and lemmatize them. In the past I used the code similar to the code snippet I've provided, however, now this operation is causing an exception related to something with WordEmbeddings during a sanity check of the document.I'm not sure if this is something I'm doing wrong or if this is a bug.
Versions
Code
The following code results in an exception in my test case...
Stacktrace
The text was updated successfully, but these errors were encountered: