@@ -1244,7 +1244,7 @@ def pii(dataset_id: str, sample_size: int, pii_types: tuple, as_json: bool, outp
12441244 risk_colors = {"high" : "red" , "medium" : "yellow" , "low" : "green" , "none" : "green" }
12451245 color = risk_colors .get (report .risk_level , "white" )
12461246
1247- console .print (f "\n [bold]PII Detection Report[/bold]" )
1247+ console .print ("\n [bold]PII Detection Report[/bold]" )
12481248 console .print (f" Samples scanned: { report .total_samples } " )
12491249 console .print (f" Samples with PII: { report .samples_with_pii } " )
12501250 console .print (f" PII ratio: { report .pii_ratio * 100 :.1f} %" )
@@ -1270,7 +1270,7 @@ def pii(dataset_id: str, sample_size: int, pii_types: tuple, as_json: bool, outp
12701270 console .print (table )
12711271
12721272 if report .recommendations :
1273- console .print (f "\n [bold cyan]Recommendations:[/bold cyan]" )
1273+ console .print ("\n [bold cyan]Recommendations:[/bold cyan]" )
12741274 for rec in report .recommendations :
12751275 console .print (f" - { rec } " )
12761276
@@ -1328,12 +1328,12 @@ def ira(
13281328
13291329 with console .status (f"[cyan]Analyzing agreement in { dataset_id } ...[/cyan]" ):
13301330 try :
1331- kwargs = dict (
1332- item_field = item_field ,
1333- annotator_field = annotator_field ,
1334- label_field = label_field ,
1335- data_format = data_format ,
1336- )
1331+ kwargs = {
1332+ " item_field" : item_field ,
1333+ " annotator_field" : annotator_field ,
1334+ " label_field" : label_field ,
1335+ " data_format" : data_format ,
1336+ }
13371337 if is_local :
13381338 report = analyzer .analyze_from_file (
13391339 str (local_path .resolve ()), sample_size = sample_size , ** kwargs ,
@@ -1372,7 +1372,7 @@ def ira(
13721372 }
13731373 color = quality_colors .get (report .quality_level , "white" )
13741374
1375- console .print (f "\n [bold]Inter-Rater Agreement Report[/bold]" )
1375+ console .print ("\n [bold]Inter-Rater Agreement Report[/bold]" )
13761376 console .print (f" Items analyzed: { report .total_items } " )
13771377 console .print (f" Total annotations: { report .total_annotations } " )
13781378 console .print (f" Annotators: { report .n_annotators } " )
@@ -1414,7 +1414,7 @@ def ira(
14141414 console .print (table )
14151415
14161416 if report .recommendations :
1417- console .print (f "\n [bold cyan]Recommendations:[/bold cyan]" )
1417+ console .print ("\n [bold cyan]Recommendations:[/bold cyan]" )
14181418 for rec in report .recommendations :
14191419 console .print (f" - { rec } " )
14201420
0 commit comments