Dear Annif-team,
Yesterday I worked with Sara and then things went really smooth - obviously, because she knows how to work Annif.
Now I am on my own, trying to get Omikuji to run and I am having an error that I do not know how to solve.
What I did:
_ Installed Omikuji (pip install omikuji). That went ok.
- I prepared my vocabulary (polmat.ttl). That went ok.
- I have the cfg file:
[omikuji-parabel-de]
name=Omikuji Parabel German
language=de
backend=omikuji
analyzer=snowball(german)
vocab=yso-de
My files are in the subfolder: annif_2023_traintestvalide (there are three subfolders in there test_set, train_set and validate_set )
>> Now I want to go to the next step which is the training data generation
(annif train tfidf-en /path/to/Annif-corpora/training/yso-finna-en.tsv.gz ) which obviously needs to be altered for omikuji
and my German stuff.
But now something goes wrong and this is what I get:
C:\Users\AnnemiekeR\Python\Policey_Bern\annif>annif train omikuji-parabel-de /annif_2023_traintestvalidate/train_set/yso-de.tsv.gz
Usage: annif train [OPTIONS] PROJECT_ID [PATHS]...
Try 'annif train --help' for help.
Error: Invalid value for '[PATHS]...': Path '/annif_2023_traintestvalidate/train_set/yso-de.tsv.gz' does not exist.
C:\Users\AnnemiekeR\Python\Policey_Bern\annif>annif train omikuji-parabel-de /annif_2023_traintestvalidate/
Usage: annif train [OPTIONS] PROJECT_ID [PATHS]...
Try 'annif train --help' for help.
Error: Invalid value for '[PATHS]...': Path '/annif_2023_traintestvalidate/' does not exist.
C:\Users\AnnemiekeR\Python\Policey_Bern\annif>annif train omikuji-parabel-de annif_2023_traintestvalidate\train_set
warning: Could not create backend omikuji, make sure you've installed optional dependencies
Traceback (most recent call last):
File "C:\Users\AnnemiekeR\Anaconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\AnnemiekeR\Anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\AnnemiekeR\Anaconda3\Scripts\annif.exe\__main__.py", line 7, in <module>
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\flask\cli.py", line 586, in main
return super(FlaskGroup, self).main(*args, **kwargs)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\flask\cli.py", line 426, in decorator
return __ctx.invoke(f, *args, **kwargs)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\annif\cli.py", line 191, in run_train
proj.train(documents, backend_params, jobs)
File "C:\Users\AnnemiekeR\Anaconda3\lib\site-packages\annif\project.py", line 225, in train
beparams = backend_params.get(self.backend.backend_id, {})
AttributeError: 'NoneType' object has no attribute 'backend_id'
C:\Users\AnnemiekeR\Python\Policey_Bern\annif>annif train omikuji_parabel_de \annif_2023_traintestvalidate\train_set
Usage: annif train [OPTIONS] PROJECT_ID [PATHS]...
Try 'annif train --help' for help.
Error: Invalid value for '[PATHS]...': Path '\\annif_2023_traintestvalidate\\train_set' does not exist.
C:\Users\AnnemiekeR\Python\Policey_Bern\annif>annif train omikuji-parabel-de /annif_2023_traintestvalidate/train_set/yso-de.tsv.gz
Usage: annif train [OPTIONS] PROJECT_ID [PATHS]...
Try 'annif train --help' for help.
Error: Invalid value for '[PATHS]...': Path '/annif_2023_traintestvalidate/train_set/yso-de.tsv.gz' does not exist.
C:\Users\AnnemiekeR\Python\Policey_Bern\annif>
Please help me solve this issue!
Best,
Annemieke