fairsenseai.analysis.bias.analyze_text_csv¶
- analyze_text_csv(file, use_summarizer, output_filename='analysis_results.csv')[source]¶
Analyzes a CSV file containing multiple text entries for bias.
- Parameters:
- Returns:
The HTML table containing results of batch analysis.
- Return type:
Examples
>>> csv_file = open("data.csv", mode='r', newline='', encoding='utf-8') >>> results_table_html = analyze_text_csv(csv_file, use_summarizer=True)