This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[tokio::main] | |
async fn main() { | |
let json_data = r#" | |
{ | |
"name": "figo", | |
"brand": "Ford", | |
"price_range": "2-3lacs", | |
"car_type": "hatchback" | |
} | |
"#; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This module contains functions for training a text classification model, generating ROC and | |
Precision-Recall curves, and evaluating the model's performance. The data is preprocessed, | |
undersampled, and a Naive Bayes classifier is trained. | |
""" | |
import os | |
import pickle | |
import csv | |
import pandas as pd | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Compare the model performance of Roberta model against ChatGPT model for tweet dataset | |
""" | |
import pandas as pd | |
from sentiment_analysis_gpt import SentimentAnalyzerGPT | |
from sentiment_analysis_roberta import SentimentAnalyzerROBERTA | |
import csv | |
class SentimentAnalyzer: |