text
Annif 1.2 has been released!
Annif 1.2 has been released!
new_line
new_line
link
https://github.com/NatLibFi/Annif/releases/tag/v1.2.0
https://github.com/NatLibFi/Annif/releases/tag/v1.2.0
new_line
new_line
text
This release introduces language detection capabilities in the REST API and CLI, improves 🤗 Hugging Face Hub integration, and also includes the usual maintenance work and minor bug fixes.
This release introduces language detection capabilities in the REST API and CLI, improves 🤗 Hugging Face Hub integration, and also includes the usual maintenance work and minor bug fixes.
new_line
new_line
text
The new REST API endpoint 
The new REST API endpoint 
inline_code
`/v1/detect-language`
/v1/detect-language
text
 expects POST requests that contain a JSON object with the text whose language is to be analyzed and a list of candidate languages. Similarly, the CLI has a new command 
 expects POST requests that contain a JSON object with the text whose language is to be analyzed and a list of candidate languages. Similarly, the CLI has a new command 
inline_code
`annif detect-language`
annif detect-language
text
. Annif projects are typically language specific, so a text of a given language needs to be processed with a project intended for that language; the language detection feature can help in this. For details see this [Wiki page](
. Annif projects are typically language specific, so a text of a given language needs to be processed with a project intended for that language; the language detection feature can help in this. For details see this [Wiki page](
link
https://github.com/NatLibFi/Annif/wiki/Language-detection
https://github.com/NatLibFi/Annif/wiki/Language-detection
text
). The language detection is performed with the Simplemma library by [@adbar](
). The language detection is performed with the Simplemma library by [@adbar](
link
https://github.com/adbar
https://github.com/adbar
text
) et al.
) et al.
new_line
new_line
text
The 
The 
inline_code
`annif download`
annif download
text
 command has a new 
 command has a new 
inline_code
`--trust-repo`
--trust-repo
text
 option, which needs to be used if the repository to download from has not been used previously (that is if the repository does not appear in the local Hugging Face Hub cache). This option is introduced to raise awareness of the risks of downloading projects from the internet; the project downloads should only be done from trusted sources. For more information see the [Hugging Face Hub documentation](
 option, which needs to be used if the repository to download from has not been used previously (that is if the repository does not appear in the local Hugging Face Hub cache). This option is introduced to raise awareness of the risks of downloading projects from the internet; the project downloads should only be done from trusted sources. For more information see the [Hugging Face Hub documentation](
link
https://huggingface.co/docs/hub/en/security-pickle
https://huggingface.co/docs/hub/en/security-pickle
text
).
).
new_line
new_line
text
This release also includes automation of downloading the NLTK datapackage used for tokenization to simplify Annif installation. Maintenance tasks include upgrading dependencies, including a new version of Simplemma that allows better control over memory usage. The bug fixes include restoring the 
This release also includes automation of downloading the NLTK datapackage used for tokenization to simplify Annif installation. Maintenance tasks include upgrading dependencies, including a new version of Simplemma that allows better control over memory usage. The bug fixes include restoring the 
inline_code
`--host`
--host
text
 option of the 
 option of the 
inline_code
`annif run`
annif run
text
 command.
 command.
new_line
new_line
text
Python 3.12 is now fully supported (previously NN-ensemble and STWFSA backends were not supported on Python 3.12).
Python 3.12 is now fully supported (previously NN-ensemble and STWFSA backends were not supported on Python 3.12).
new_line
new_line
resource
https://huggingface.co/spaces/NatLibFi/Annif
space
NatLibFi/Annif
https://huggingface.co/spaces/NatLibFi/Annif
Annif 1.2 has been released!

https://github.com/NatLibFi/Annif/releases/tag/v1.2.0

This release introduces language detection capabilities in the REST API and CLI, improves 🤗 Hugging Face Hub integration, and also includes the usual maintenance work and minor bug fixes.

The new REST API endpoint `/v1/detect-language` expects POST requests that contain a JSON object with the text whose language is to be analyzed and a list of candidate languages. Similarly, the CLI has a new command `annif detect-language`. Annif projects are typically language specific, so a text of a given language needs to be processed with a project intended for that language; the language detection feature can help in this. For details see this [Wiki page](https://github.com/NatLibFi/Annif/wiki/Language-detection). The language detection is performed with the Simplemma library by [@adbar](https://github.com/adbar) et al.

The `annif download` command has a new `--trust-repo` option, which needs to be used if the repository to download from has not been used previously (that is if the repository does not appear in the local Hugging Face Hub cache). This option is introduced to raise awareness of the risks of downloading projects from the internet; the project downloads should only be done from trusted sources. For more information see the [Hugging Face Hub documentation](https://huggingface.co/docs/hub/en/security-pickle).

This release also includes automation of downloading the NLTK datapackage used for tokenization to simplify Annif installation. Maintenance tasks include upgrading dependencies, including a new version of Simplemma that allows better control over memory usage. The bug fixes include restoring the `--host` option of the `annif run` command.

Python 3.12 is now fully supported (previously NN-ensemble and STWFSA backends were not supported on Python 3.12).

https://huggingface.co/spaces/NatLibFi/Annif
👀
John6666 deepak7mahto
🚀
holehan