Bhikkhu-Kosalla пре 5 година
родитељ
комит
9bb5a0ec9b
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      app/dict/comp_csv.php

+ 7 - 1
app/dict/comp_csv.php

@@ -58,7 +58,13 @@ while($word = $redis->hGet("pali://wordindex.hash",$start))
 
 
         foreach ($arrword as $oneword) {
         foreach ($arrword as $oneword) {
 			$result = array(); //全局变量,递归程序的输出容器
 			$result = array(); //全局变量,递归程序的输出容器
-			mySplit2($oneword, 0, false, 0.2, 0.9, 0, true, false);
+			if(mb_strlen($oneword)>35){
+				mySplit2($oneword, 0, true, 0.8, 0.9, 0, true, false);
+			}
+			else{
+				mySplit2($oneword, 0, false, 0.8, 0.9, 0, true, false);
+			}
+			
 			if(count($result)<3){
 			if(count($result)<3){
 				mySplit2($oneword, 0, false, 0.2, 0.8, 0, true, true);
 				mySplit2($oneword, 0, false, 0.2, 0.8, 0, true, true);
 				if (isset($_POST["debug"])) {
 				if (isset($_POST["debug"])) {