我有一个脚本,为每个句子计算一个double的向量,并且我将结果存储在一个文件中,如句子--->矢量通常是双[] .. 例如:
heres link to listen live to our discussion of debtceiling politics --->[D@184497d1
now were talking debtceiling w dick polman and bill galston--->[D@f9d87b
现在我想使用这些向量,所以我做了一个脚本来获取每行的第二部分:
String str;
while ((str = in.readLine()) != null) {
String substr = "--->";
String[] parts = str.split(substr);
String before = parts[0];
String after = parts[1];
System.out.println(after);
}
}
但我希望转换"之后"加倍[] ..