Closed juhoinkinen closed 1 year ago
Base: 99.56% // Head: 99.56% // Increases project coverage by +0.00%
:tada:
Coverage data is based on head (
8d7e1c5
) compared to base (8a194c4
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
1 Security Hotspot
0 Code Smells
No Coverage information
0.0% Duplication
When a project's vocabulary is not up-to-date with the corpus being used there can be very many warnings like
warning: Unknown subject URI <http://www.yso.fi/onto/yso/p22036>
that flood the screen.See an example output
annif train tfidf-en ../Annif-tutorial/data-sets/yso-nlf/docs/train/ Backend tfidf: transforming subject corpus Backend tfidf: creating vectorizer warning: Unknown subject URIHowever, usually there are not so many URIs (or labels) that are absent from the vocabulary, but the message is shown for every occasion any of them is encounted in the corpus: the same warnings are duplicated many times. This PR suppresses the duplicate log messages that are raised from the subject.py module.
See the above output with this PR applied
annif train tfidf-en ../Annif-tutorial/data-sets/yso-nlf/docs/train/ Backend tfidf: transforming subject corpus Backend tfidf: creating vectorizer warning: Unknown subject URIBased on a SO answer.