public void readDocs(Segmenter seg, String docsPath) {
		BufferedReader reader;
	 // int n = 0;
		try {
			reader = new BufferedReader(new InputStreamReader(new FileInputStream(docsPath)));
			String line = "";
			while ((line = reader.readLine()) != null) {
				
				/*if (n == 1000)
					return;*/
				//System.out.println(line);
				Document doc = new Document(seg, line, termToIndexMap,
						indexToTermMap, termCountMap);
				docs.add(doc);
				//n++;
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}