Feature/custom model api endpoint support #820
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Enhanced Custom Model Support in Langtest Library
This pull request introduces an essential feature to the Langtest library, enabling enhanced support for customized models. Additionally, an important modification has been made in the Harness class. Specifically, the 'hub' parameter has been updated to accept "custom".
The implementation of this feature extends the flexibility of the Langtest library, empowering users to leverage and integrate personalized models seamlessly. By accommodating custom models, the Langtest library can now cater to a broader range of use cases and accommodate diverse linguistic requirements.
Moreover, the update made in the Harness class represents a significant improvement, simplifying the configuration process and making it more intuitive for users to specify their preferred parameters. This modification enhances the overall usability of the Langtest library, contributing to a more streamlined and efficient experience for developers and researchers.
These enhancements are designed to elevate the functionality and accessibility of the Langtest library, demonstrating our commitment to continuously improving the user experience and expanding the capabilities of the library to meet evolving language processing needs.
➤ Custom model API endpoint support
Type of change
Please delete options that are not relevant.
Usage
The SentimentAnalysis class within this module enables users to perform sentiment analysis on textual data. It consists of essential methods for training, predicting, and evaluating sentiment analysis models. To ensure comprehensive testing with Langtest, please note the following specific requirements for the predict method:
Please ensure that the provided code snippet for the predict method is retained and integrated into the testing process with Langtest. This step is crucial for validating the accurate functioning of the sentiment analysis predictions within the Langtest framework.
Furthermore, the SentimentAnalysis class can be leveraged effectively for training sentiment analysis models, making predictions on new data points, and evaluating the performance of the model.
Let's do with Langtest
Checklist:
pydantic
for typing when/where necessary.Screenshots (if appropriate):
Failed test cases in add_contraction test