BicePy is a VSCode extension designed to make Python programming more accessible to non-native English speakers. It utilizes machine learning to translate Python error messages and provides descriptive explanations in Spanish. The extension leverages large language models for translation and error explainability, offering a low-cost, plug-and-play approach to language translation.
Features
BicePy offers several unique features:
Error Explainability with Large Language Models (LLMs): BicePy integrates an LLM to provide detailed explanations for Python errors and suggest potential fixes.
Pre-trained Hugging Face Model with Neural Machine Translation (NMT): BicePy uses a pre-trained Hugging Face model based on NMT to translate Python error messages into Spanish.
Future-proofing with Custom Models: BicePy allows users to integrate their custom models for error translation and explainability. This feature enables users to adapt to future improvements in natural language processing and machine learning.
Different Ways to Run BicePy: Users can run BicePy using the command palette or by enabling settings that check Python files whenever they are opened or saved in the editor.
Local Dictionary for Offline Usage: BicePy offers an optional local dictionary for translating errors without an internet connection.
Requirements
BicePy requires an active internet connection for accessing the Hugging Face API and LLMs. However, offline usage is possible with the local dictionary feature.
Extension Settings
After installation, BicePy adds the following settings to your VS Code environment:
bicepy.runOnFileOpen: Enable/disable running BicePy when a Python file is opened.
bicepy.runOnFileSave: Enable/disable running BicePy when a Python file is saved.
bicepy.useLocalDictionary: Enable/disable using the local dictionary for offline translations.
bicepy.customTranslationModel: Specify a custom translation model.
bicepy.customExplainabilityModel: Specify a custom explainability model.
Known Issues
Please refer to the 'Issues' tab in our GitHub repository for known issues and ongoing developments.
Release Notes
1.0.0
Initial release of BicePy.
Introduced the error explainability feature and added support for custom models.