@@ -526,8 +526,12 @@ class Metrics(Enum):
526526 metric_name = "extractive_match" ,
527527 sample_level_fn = MultilingualExtractiveMatchMetric (
528528 language = Language .ENGLISH ,
529- gold_extraction_target = [IndicesExtractionConfig (prefix_for_extraction = "NativeLetters" )],
530- pred_extraction_target = [IndicesExtractionConfig (prefix_for_extraction = "NativeLetters" )],
529+ gold_extraction_target = [
530+ IndicesExtractionConfig (prefix_for_extraction = "NativeLetters" , try_extract_without_anchor = True )
531+ ],
532+ pred_extraction_target = [
533+ IndicesExtractionConfig (prefix_for_extraction = "NativeLetters" , try_extract_without_anchor = True )
534+ ],
531535 precision = 6 ,
532536 ),
533537 category = SamplingMethod .GENERATIVE ,
@@ -539,8 +543,12 @@ class Metrics(Enum):
539543 sample_level_fn = PassAtK (
540544 sample_scoring_function = MultilingualExtractiveMatchMetric (
541545 language = Language .ENGLISH ,
542- gold_extraction_target = [IndicesExtractionConfig (prefix_for_extraction = "NativeLetters" )],
543- pred_extraction_target = [IndicesExtractionConfig (prefix_for_extraction = "NativeLetters" )],
546+ gold_extraction_target = [
547+ IndicesExtractionConfig (prefix_for_extraction = "NativeLetters" , try_extract_without_anchor = True )
548+ ],
549+ pred_extraction_target = [
550+ IndicesExtractionConfig (prefix_for_extraction = "NativeLetters" , try_extract_without_anchor = True )
551+ ],
544552 precision = 6 ,
545553 ),
546554 ),
0 commit comments