Closed kdw2060 closed 1 year ago
Hello @kdw2060,
thank you for trying Annif and opening this issue.
Your SKOS vocabulary looks OK, though the URI that seems to refer to a GIF image seems a bit unusual.
The .tsv file on the other hand is lacking the angle brackets needed to distinguish a URI from a label. This makes Annif interpret the first column as a (Dutch language) label, as can be seen from this error message:
warning: Unknown subject label "http://openvlacc.cultuurconnect.be/ZizoImages/Kleuter/KZDIE.gif"@nl
The solution is to use angle brackets within the TSV file, like this:
<http://openvlacc.cultuurconnect.be/ZizoImages/Kleuter/KZDIE.gif> Natuur - Dieren KZDIE
For more details on the format, see Document corpus formats in the wiki.
(note that the label and notation are actually optional in this case, as Annif will prefer the URI when it sees one and ignore the other columns - but it may still be good to keep it there for your own use)
If you have further problems, please use the annif-users group to ask instead of this issue tracker, unless you think that you've found a bug in Annif or you want to submit a feature request.
Thank you for the rapid response Osma, I'll make a script to add the brackets and will post follow-up questions in the users-group. The odd uri is because we don't have 'official' uri's for our metadata labels and I'm also not aware of the standards concerning this.
Hi, I'm trying to figure out what i'm doing wrong.
I have created a vocabulary and this is loaded. I also have a training set consisting of about 6000 .tsv and .txt files. When I execute the command
annif train my-model-name /myfoldername
this results in a list of errors like:warning: Unknown subject label "http://openvlacc.cultuurconnect.be/ZizoImages/Kleuter/KZDIE.gif"@nl
ending with:
To help you debug, this is what an item in the .ttl vocabulary looks like:
A corresponding .tsv file inside the training directory set looks like this:
The project definition inside
projects.cfg
looks like this:Last piece of info: the training data resides in another directory on another drive then where the Annif program and the project.cfg + vocab files are located.
Thank you for helping me figure out where I made a mistake.