Browse Source

周杰生成训练样本

louhr 5 years atrás
parent
commit
12971f3651

+ 2 - 2
nlp-web/src/main/java/org/diagbot/nlp/dao/xml/InfoMapper.xml

@@ -79,7 +79,7 @@
 	<select id="selectList" resultMap="infoMap" parameterType="java.util.Map">
 		SELECT 
 		<include refid="Base_Column_List"/>
-		FROM doc_info t WHERE 1=1
+		FROM doc_info_all t WHERE 1=1
 		<if test="id != null and id != ''">
 				 and t.id = #{id}
 		</if>
@@ -113,7 +113,7 @@
 	<select id="selectListWrapper" resultMap="infoWrapperMap" parameterType="java.util.Map">
 		SELECT 
 		<include refid="Base_Column_List"/>
-		FROM doc_info t WHERE 1=1 
+		FROM doc_info_all t WHERE 1=1
 		<if test="id != null and id != ''">
 				 and t.id = #{id}
 		</if>

+ 1 - 1
nlp-web/src/main/resources/application.yml

@@ -12,7 +12,7 @@ spring:
       charset: UTF-8
       enabled: true
   datasource:       # mybatis 配置,使用druid数据源
-    url: jdbc:mysql://1.1.1.1:3306/med-s?useUnicode=true&characterEncoding=UTF-8
+    url: jdbc:mysql://192.168.2.235:3306/diagbot-app?useUnicode=true&characterEncoding=UTF-8
     username: root
     password: diagbot@20180822
     type: com.alibaba.druid.pool.DruidDataSource

+ 1 - 1
nlp/src/main/java/org/diagbot/nlp/feature/FeatureAnalyze.java

@@ -60,7 +60,7 @@ public class FeatureAnalyze {
 //            lexeme_text = lexeme_text + "|" + lexemePath.get(i).getText() + "^" + lexemePath.get(i).getProperty();
 //        }
 //        logger.info("分词文本结果:" + lexeme_text);
-        lexemePath = replaceLexeme(lexemePath);
+//        lexemePath = replaceLexeme(lexemePath);
         return caseToken.analyze(lexemePath);
     }
 

+ 2 - 2
nlp/src/main/resources/nlp.properties

@@ -1,3 +1,3 @@
 #Êý¾ÝÎļþ´æ·Å·¾¶
-cache.file.dir=/opt/diagbot-push/cache_file/
-#cache.file.dir=d:\\cache_file\\
+#cache.file.dir=/opt/diagbot-push/cache_file/
+cache.file.dir=d:\\cache_file\\

+ 1 - 1
push-web/src/main/resources/static/dist/js/push.js

@@ -1,4 +1,4 @@
-var nlp_web_url = "http://192.168.2.186:5002/nlp-web";
+var nlp_web_url = "http://192.168.3.103:5002/nlp-web";
 var bigdata_web_url = "http://192.168.2.186:5001/bigdata-web";
 var graph_web_url = "http://192.168.2.186:5003/graph-web";
 // var push_web_url = "http://192.168.2.234:5008/push-web";