|
@@ -1,6 +1,6 @@
|
|
|
package com.winhc.bigdata.spark.utils
|
|
|
|
|
|
-import com.github.stuxuhai.jpinyin.ChineseHelper
|
|
|
+import com.github.houbb.opencc4j.util.ZhConverterUtil
|
|
|
import com.winhc.bigdata.spark.implicits.CaseClass2JsonHelper._
|
|
|
import com.winhc.bigdata.spark.utils.BaseUtil.cleanup
|
|
|
import org.apache.commons.lang3.StringUtils
|
|
@@ -118,14 +118,13 @@ object CompanyIndexUtils {
|
|
|
|
|
|
def convertToSimplifiedChinese(name: String): String = {
|
|
|
if (StringUtils.isEmpty(name)) null
|
|
|
- else ChineseHelper.convertToSimplifiedChinese(name)
|
|
|
+ else ZhConverterUtil.toSimple(name)
|
|
|
}
|
|
|
|
|
|
|
|
|
def main(args: Array[String]): Unit = {
|
|
|
// println(company_score_weight("存续(在营、开业、在册)","新疆现代特油科技股份有限公司","200309577000000","1"))
|
|
|
-
|
|
|
- println(getCompanyName("香港中旅(中國)國際投資有限公司").buildJson)
|
|
|
+ println(getCompanyName("滙").buildJson)
|
|
|
}
|
|
|
|
|
|
}
|