Jelajahi Sumber

refactor: Update default sample size in extract_sample_data function

mrh 1 tahun lalu
induk
melakukan
dae4cd8d56
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      mylib/translate_utils.py

+ 1 - 1
mylib/translate_utils.py

@@ -24,7 +24,7 @@ def insert_empty_columns(data: List[List[str]], column_indices: List[int]) -> Li
         logger.error(f"Error inserting empty columns: {e}")
         raise
 
-def extract_sample_data(data: List[List[str]], n: int = 2, m: int = 2) -> List[List[str]]:
+def extract_sample_data(data: List[List[str]], n: int = 3, m: int = 2) -> List[List[str]]:
     """提取前n行m列数据用于检查"""
     try:
         sample = []