TextAnalyzer Pipeline
Python module for using NLP bias analysis models.
1. Import
# pip install the-fairly-project
from fairly import TextAnalyzer2. Initialize the Module
text_pipeline = TextAnalyzer(
bias="ternary", # defaults to None
classes=True, # defaults to False
top_k_classes=3, # defaults to 3
ner="gus"
)Customize your pipeline
Args
Options
3. Run Bias Analysis
result = text_pipeline.analyze("Data scientists are so smart")4. Example Output
Last updated