在序列模式挖掘中,我们的应用为
<11> 1 -1 <18> 2 -1 <23> 3 -1 -2
<33> 1 -1 <55> 2 -1 <61> 3 -1 <68> 6 -1 <84> 9 -1 -2
<10> 1 -1 <16> 2 -1 <66> 6 -1 -2
<13> 1 -1 <44> 2 -1 <49> 3 -1 <55> 6 -1 -2
<16> 1 -1 -2
那么如何读取这种数据?
源代码大致如下
package temp;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*@author YW
*@version 创建时间:Jul 17, 20205:04:33 PM
*代码作用说明:
*/
public class sequencefile {
public void loadFile(String path, double minSupportAbsolute)throws IOException{
String thisLine;
BufferedReader myInput = null;
try {
FileInputStream fis = new FileInputStream(new File(path));
myInput = new BufferedReader(new InputStreamReader(fis));
while((thisLine = myI