fairsenseai.analysis.bias.analyze_text_for_bias¶
- analyze_text_for_bias(text_input, use_summarizer, progress=<gradio.helpers.Progress object>)[source]¶
Analyzes a given text for bias and provides a detailed analysis.
- Parameters:
- Returns:
A tuple containing the highlighted text with bias words and the detailed analysis.
- Return type:
Example
>>> highlighted, analysis = analyze_text_for_bias("This text may contain bias.", use_summarizer=True)