Enhanced Course Table Script: Topic Correspondence enhancement using AI, Handling of Errors and Improvement of Code #44
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
The Course Table Generation Script has also seen immense evolution especially in the use of Artificial intelligence as well as better handling of errors and organization of the code. A new AI engine has been incorporated to compare course descriptions and to generate topics of interest using TF-IDF vectorization and cosine similarity. This improvement helps the users to search for the courses that relate with their interest in a better manner. The table format of README file was expanded to include another column for these related topics to make it easier for users to learn more about the courses.
Besides these AI based features, the error handling of the script has also been enhanced by replacing a general exception with more specific one which makes the script more reliable and informative when errors occur. The error messages have been improved as well to give the user more useful information on what to do. Also, the code was modified to solve the problem of variable shadowing and enhance code quality in terms of clarity and reusability. Some changes were made to the names of variables with an aim of making the script as clear as possible and reduce possibilities of making mistakes due to use of similar names. Altogether, the changes described in this paper enhance the script’s functionality, usability, and readiness for future extension.
Pull request checklist