code: private int loadSparseTextOffsets(RandomAccessBufferedReader textSSpace) 
              throws IOException {
          String line = textSSpace.readLine();
          if (line == null)
              throw new IOError(new Throwable(
                          "An empty file has been passed in"));
  
          // Strip off the 4-byte (2 char) header
          if (containsHeader) {
              line = line.substring(4);
              System.out.println(line);
          }        
  
          String[] dimensions = line.split("\\s");
          int columns = Integer.parseInt(dimensions[1]);
          int rows = Integer.parseInt(dimensions[0]);
          int row = 1;
          
          while ((line = textSSpace.readLine()) != null) {
              String[] termVectorPair = line.split("\\|");
              termToOffset.put(termVectorPair[0], Long.valueOf(row));
              row++;
          }
          if ((row - 1) != rows)
              throw new IOException(String.format(
                  "Different number of rows than specified (%d): %d", rows, row));
          return columns;    
      }
docs: Loads the {@link SemanticSpace} from the text formatted file, adding its
  words to {@link #termToOffset} and returning the {@code Matrix}
  containing
  the space's vectors.
  
  @param sspaceFile a file in {@link SSpaceFormat#TEXT text} format