Skip to content

Add detect language method#16

Merged
juhoinkinen merged 7 commits intomasterfrom
issue13-add-detect-language-method
Sep 25, 2025
Merged

Add detect language method#16
juhoinkinen merged 7 commits intomasterfrom
issue13-add-detect-language-method

Conversation

@juhoinkinen
Copy link
Copy Markdown
Member

@juhoinkinen juhoinkinen commented Sep 25, 2025

Closes #13.

Two first commits were made with Copilot Agent Mode.

@juhoinkinen juhoinkinen requested a review from Copilot September 25, 2025 10:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new detect_language method to the Annif client to support language detection functionality, closing issue #13.

  • Implements a new detect_language method in the AnnifClient class with support for text input and optional language candidates
  • Adds test coverage for the new language detection functionality
  • Includes a demonstration of the feature in the main example code

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
annif_client.py Adds the detect_language method implementation and updates the main example to demonstrate language detection
tests/test_annif_client.py Adds test cases for the new language detection functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@juhoinkinen juhoinkinen merged commit 2714744 into master Sep 25, 2025
12 checks passed
@juhoinkinen juhoinkinen deleted the issue13-add-detect-language-method branch September 25, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for detect-language method

2 participants