Some issue with bufferedReader
- by thetna
I have a java function as follows:
public HashMap<String, ArrayList<Double>> embedWords(BufferedReader buffR1 {
ArrayList<String > arrayList = new ArrayList<String>();
arrayList = getWords(buffR1);
System.out.println("Word size:"+ arrayList.size());
ArrayList<ArrayList<Double>> arrList = getWordFeature(buffR1);
System.out.println("Size of arrList:embedWords:"+arrList.size());
}
Here , the problem is , the both of the function getWords and getWordFeatures can't give the size value. When i comment function getWords the function getWordFeature returns non-zero value .But when uncommented , the output is as follows:
Word size:15055
Size of arrList:embedWords: 0