}
Bag<String> allTerms = new Bag<String>();
String word = "reduction";
List<File> files = FileTools.getFilesFromDirectoryByName(new File("/home/ptc24/newows/corpora/BioIE"), "source.xml");
//List<File> files = FileTools.getFilesFromDirectoryByName(new File("/scratch/pubmed/2005"), "source.xml");
TokenSequenceSource ts = new TokenSequenceSource(files);
for(TokenSequence t : ts) {
List<String> tokens = t.getTokenStringList();
for(int i=0;i<tokens.size();i++) {
if(tokens.get(i).equals(word)) {
for(int j=Math.max(0, i-windowSize);j<=Math.min(i+windowSize,tokens.size()-1);j++) {