Closed SeibertronSS closed 1 year ago
It seems that many NLP examples do not work
Hi, which version of omnixai has been used?
On Thu, 29 Dec 2022 at 9:15 PM, SeibertronSS @.***> wrote:
''' Traceback (most recent call last): File "/export/home/x/python_test/omnixai/text/nlp.py", line 4, in from omnixai.explainers.nlp import NLPExplainer File "/export/home/x/miniconda3/envs/kf/lib/python3.9/site-packages/omnixai/explainers/nlp/ init.py", line 9, in from .agnostic.shap import ShapText File "/export/home/x/miniconda3/envs/kf/lib/python3.9/site-packages/omnixai/explainers/nlp/agnostic/shap.py", line 11, in import shap File "/export/home/x/python_test/omnixai/text/shap.py", line 3, in from omnixai.explainers.nlp import ShapText ImportError: cannot import name 'ShapText' from partially initialized module 'omnixai.explainers.nlp' (most likely due to a circular import) (/export/home/x/miniconda3/envs/kf/lib/python3.9/site-packages/omnixai/explainers/nlp/ init.py) '''
— Reply to this email directly, view it on GitHub https://github.com/salesforce/OmniXAI/issues/62#issuecomment-1367312297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZWA6KDKT5LQIZNSWCYYTLWPWFI5ANCNFSM6AAAAAATMCDADQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I use the omnixai=1.2.3
@yangwenz which version should I use?
We are checking the issue, and will make an update later.
On Tue, Jan 3, 2023 at 9:19 AM SeibertronSS @.***> wrote:
@yangwenz https://github.com/yangwenz which version should I use?
— Reply to this email directly, view it on GitHub https://github.com/salesforce/OmniXAI/issues/62#issuecomment-1369308421, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZWA6PBVRVDURKP5GDP4C3WQN5B5ANCNFSM6AAAAAATMCDADQ . You are receiving this because you were mentioned.Message ID: @.***>
Thank you!
The issue has been fixed, please update to v1.2.4.
Thanks for the quick fix, it helps me a lot.
I used the NLP example in https://github.com/salesforce/OmniXAI/blob/main/tutorials/nlp.ipynb, but I got the error
I found that the
values
of theText
class are used in many places in the program and theText
object is still returned