|
@@ -27,6 +27,7 @@ import java.io.File;
|
|
import java.io.FileInputStream;
|
|
import java.io.FileInputStream;
|
|
import java.io.FileNotFoundException;
|
|
import java.io.FileNotFoundException;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
|
+import java.io.InputStream;
|
|
import java.io.InputStreamReader;
|
|
import java.io.InputStreamReader;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
@@ -336,9 +337,11 @@ public class ClinicalFacade {
|
|
String line = "";
|
|
String line = "";
|
|
try {
|
|
try {
|
|
//file = ResourceUtils.getFile("classpath:standword.txt");
|
|
//file = ResourceUtils.getFile("classpath:standword.txt");
|
|
- Resource resource = new ClassPathResource("standword.txt");
|
|
|
|
- file = resource.getFile();
|
|
|
|
- reader = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
|
|
|
|
|
|
+// Resource resource = new ClassPathResource("standword.txt");
|
|
|
|
+ ClassPathResource classPathResource = new ClassPathResource("standword.txt");
|
|
|
|
+ InputStream inputStream =classPathResource.getInputStream();
|
|
|
|
+// file = resource.getFile();
|
|
|
|
+ reader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
|
|
while ((line = reader.readLine()) != null) {
|
|
while ((line = reader.readLine()) != null) {
|
|
data = nlpServiceClient.split(line).getData();
|
|
data = nlpServiceClient.split(line).getData();
|
|
splitStandWords.add(data);
|
|
splitStandWords.add(data);
|