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

attribute error when running on python3.6 #196

Closed
MaryFllh opened this issue Jan 22, 2019 · 4 comments
Closed

attribute error when running on python3.6 #196

MaryFllh opened this issue Jan 22, 2019 · 4 comments

Comments

@MaryFllh
Copy link

If you are reporting a bug or problem with MITIE then fill out the entire template below. Issues asking questions about why something doesn't work that fail to fill out the entire template will be closed.

Also, the issue tracker is not a code writing service, do not ask for someone to write code for you. In particular, do not submit issues asking for feature improvements to the example programs. The examples are documentation, their purpose is to teach, not to be useful programs. If there is some feature improvement you want in an example program then it's up to you to write it.

If you aren't reporting a bug or problem with MITIE then delete this template and write whatever you want here.

Expected Behavior

Current Behavior

Steps to Reproduce

  • Version:
  • Where did you get MITIE:
  • Platform:
  • Compiler:
@MaryFllh
Copy link
Author

MaryFllh commented Jan 22, 2019

Hi
I'm trying to run text_categorizer_pure_model.py on python 3.6, but an attribute error is raised when loading the trained model using text_categorizer():

line 719, in del
self.__mitie_free(self.__obj)
AttributeError: 'text_categorizer' object has no attribute '_text_categorizer__obj'

The code runs perfectly fine on python 2.7.
Is there a solution to this?

@nicola88
Copy link

I have the exact same error on Ubuntu Server 16.04 using MITIE 0.5 / 0.6 and Python 3.5.2 / 3.6.6.

@davisking
Copy link
Contributor

Thanks for reporting this. I just pushed the fix to github.

@MaryFllh
Copy link
Author

Thank you very much. It is working now.

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

No branches or pull requests

3 participants