use a more aggresive sampling_weight

This commit is contained in:
marcoyang1998 2023-08-16 09:38:40 +08:00
parent ae4d2fbfcc
commit fdc4fcabb9
2 changed files with 3 additions and 2 deletions

View File

@ -238,7 +238,7 @@ def triplet_text_sampling(
lower_all_char,
]
sampling_weight = [0.5, 0.2, 0.15, 0.15] # Mixed-punc should have the largest sampling prob
sampling_weight = [0.7, 0.3, 0.0, 0.0] # Mixed-punc should have the largest sampling prob
total_transforms = len(transforms) # do not use the recognized trans

View File

@ -240,7 +240,8 @@ def triplet_text_sampling(
lower_all_char,
]
sampling_weight = [0.5, 0.2, 0.15, 0.15] # Mixed-punc should have the largest sampling prob
# sampling_weight = [0.5, 0.2, 0.15, 0.15] # Mixed-punc should have the largest sampling prob
sampling_weight = [0.7, 0.3, 0.0, 0.0]
total_transforms = len(transforms) # do not use the recognized trans