private Set<String> loadResource(InputStream resource) {
    Set<String> mwus = new HashSet<String>();
    /** The buffered file for reading */
    BufferedReader inFile = null;
    List<LabeledToken> myList;
    String str;

    try {
      InputStreamReader reader = new InputStreamReader(resource, "UTF-8");
      inFile = new BufferedReader(reader);
      String line;
      boolean start=false;
      
      while ((line = inFile.readLine()) != null) {
    	myList=MultilingualTokenizer.parseBuffer(line);
    	StringBuffer sb=new StringBuffer();
    	start=false;
    	for (int i=0;i<myList.size();i++) {
    	  if (myList.get(i).isNonSpace()) {
    		str=myList.get(i).getMain().toLowerCase();
    		str=str.replaceAll("\\d","\\\\d");
      	    if (start) { 
      		  sb.append(" ");
      		  mwus.add(sb.toString());
      	    }
    		sb.append(str);
    		start=true;
    	  }
    	}
        mwus.add(sb.toString());
      }
      //System.out.println("My MWUs are :");
      //Iterator<String> myIt=mwus.iterator();  while (myIt.hasNext()) { System.out.println(myIt.next()); }
      //System.exit(0);
      
    }
    catch (IOException e) {
    }
    finally {
      try {
        if (inFile != null) {
          inFile.close();
        }
      }
      catch (IOException ex) {
      }
    }
    return mwus;
  }