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
AttributeError: module 'distutils' has no attribute 'util' #87
Comments
hello, add in main.py |
Asked & answered in #75. |
Sorry to bother again.
It shows the same error.
First, I saw the reply in #75 . But when I open the neuromodel.py, there is already |
I'm sorry @huanting74, your error relates to a recent update (#141) for optionally displaying scores in the output files. I'll look into this after the weekend. In the meantime please could you check that you are using the latest version ( If there is a mismatch between your neuroner version and your parameter file, then I would expect a key error ( We should add a version check to the package to avoid this problem. |
I tried to upgrade the version of neuroner. It shows it is the latest version.
|
@huanting74 adding the following line to your parameters.ini file may fix the issue for now:
|
My environment: When I tried the command "neuroner --maximum_number_of_epochs=2 --token_pretrained_embedding_filepath=""" in the readme, it aborted with error below: {'character_embedding_dimension': 25, However, I tried adding output_scores = False in the parameters.ini file, still got the same error. |
I am able to see the output of the model in output folder/2021-10-09.../000_deploy.txt, but I am not able to understand of which text file it is showing the output. In ./data/example_unannotated_texts there are few files that are news.txt and news.ann (what is this file it is empty?) similarly there are some_random_text.txt and some_random_text.ann, but the result does not match any of it. I am confused. I want to test neuroner on my sentences. I am unable to find where to add so that I can get the output. I am using a pretrained model. Can anyone can help? |
When I try to change the text of news.txt I get the same error I tried updating neuroner , output_scores = False |
how can I test neuro ner on my text data. If anyone know Please help? @tompollard |
File "main.py", line 250, in
main()
File "main.py", line 245, in main
nn = NeuroNER(**arguments)
File "/home/server1/share/NeuroNER-master/src/neuroner.py", line 257, in init
parameters, conf_parameters = self._load_parameters(arguments['parameters_filepath'], arguments=arguments)
File "/home/server1/share/NeuroNER-master/src/neuroner.py", line 118, in _load_parameters
parameters[k] = distutils.util.strtobool(v)
AttributeError: module 'distutils' has no attribute 'util'
Exception ignored in: <bound method NeuroNER.del of <neuroner.NeuroNER object at 0x7fb8d35fcda0>>
Traceback (most recent call last):
File "/home/server1/share/NeuroNER-master/src/neuroner.py", line 489, in del
self.sess.close()
AttributeError: 'NeuroNER' object has no attribute 'sess'
The text was updated successfully, but these errors were encountered: