Sentiment-Analysis-Twitter
Sentiment-Analysis-Twitter copied to clipboard
Update sentiment.py
Error Handling for File Operations:
Added a try-except block around the CSV file reading section to catch FileNotFoundError. This provides a clear error message if the file is not found, guiding the user to check the path. Included a general exception handler to catch any other errors that might occur during the file reading process.
Updated the usage message in the main() function to inform users about the expected command-line arguments, including the path to the CSV file.
These changes enhance the overall user experience and make the code more resilient against common file-related issue