-
Notifications
You must be signed in to change notification settings - Fork 35
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
Import concepts from concept DB does nothing #120
Comments
Update: I have also rolled back to version 2.3.8 and the same issue arises. This is most noticeable if you are trying to use MedCATtrainer as an annotation tool (namely, a blank CDB in the project and the populated CDB is imported globally). |
I have tried again in version 2.3.7 and this time I identified an error to do with the medcat.config file: ttributeError: Can't get attribute '_DefPartial' on <module 'medcat.config' from '/usr/local/lib/python3.7/site-packages/medcat/config.py'> Full error: medcattrainer | [pid: 143|app: 0|req: 32/32] 172.18.0.4 () {54 vars in 1134 bytes} [Wed Feb 15 11:58:08 2023] GET /favicon.ico => generated 962 bytes in 1 msecs (HTTP/1.0 200) 3 headers in 109 bytes (1 switches on core 0) |
Hey - I'd recommend you upgrade to image v2.5.5.
This version has multiple fixes and improvements related to the concept
search and importing capability.
In summary - imorting concepts kicks off a background task, that is picked
up by a polling event loop process that iterates through all concepts of
the provided medcat model CDB indexing the names, synonyms and cuis in a
solr collection.
Importing a cdb, removes and replaces the collection (if it already
exists).
The main project homepage shows if the concept dB is correctly linked and
imported, as shown by the green tick under the "concepts imported" column.
Hope that helps,
Tom
…On Mon, Feb 13, 2023, 15:45 Rachel ***@***.***> wrote:
Update: I have also rolled back to version 2.3.8 and the same issue arises.
—
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRTZNC6OIN3XTG2EZLUUFTWXJJKDANCNFSM6AAAAAAUVN4GZU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
actually looking at this error looks like an issue with the serialisation of your model medcattrainer | File "/usr/local/lib/python3.7/site-packages/dill/_dill.py", line 515, in find_class medcattrainer | return StockUnpickler.find_class(self, module, name) medcattrainer | AttributeError: Can't get attribute '_DefPartial' on What version of MedCAT did you use to save this model? |
Hello, sorry for opening an old topic but I have the same issue. I don't know what should happened because after pressing the import concepts it just refreshed the page and nothing happened but there is task appeared. |
With image: cogstacksystems/medcat-trainer:v2.5.3 I cannot import the concepts from a concept database. As per the docs, I tick the box next to the relevant CDB, select Import concepts, and click Go, and the page simply refreshes. The concepts are not imported. On the home page, this action is not listed under My recent actions; however I can see the attempts in the Completed tasks.
Has anyone else come across this?
The text was updated successfully, but these errors were encountered: