|
@@ -67,9 +67,9 @@ public class ClinicalFacade {
|
|
|
*/
|
|
|
public ResponseData processClinicalData(@RequestBody SearchVo searchVo) {
|
|
|
SearchVo sData = searchVo;
|
|
|
- //Map<String, List<Map<String, String>>> standWord = getStandWord();
|
|
|
+ Map<String, List<Map<String, String>>> standWord = getStandWord();
|
|
|
Response<List<Lexeme>> resp = nlpServiceClient.split(sData.getSymptom());
|
|
|
- //addStandWord(resp.getData(), standWord, sData);
|
|
|
+ addStandWord(resp.getData(), standWord, sData);
|
|
|
|
|
|
sData.setLisArr(processLis(sData.getLisArr()));
|
|
|
|
|
@@ -336,7 +336,7 @@ public class ClinicalFacade {
|
|
|
String line = "";
|
|
|
try {
|
|
|
//file = ResourceUtils.getFile("classpath:standword.txt");
|
|
|
- Resource resource = new ClassPathResource("/standword.txt");
|
|
|
+ Resource resource = new ClassPathResource("standword.txt");
|
|
|
file = resource.getFile();
|
|
|
reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
|
|
while ((line = reader.readLine()) != null) {
|