467468469470471472473474
*/ protected void saveObject(ObjectOutputStream outStream, Object obj) { try { outStream.writeObject(obj); } catch (IOException ioe) { throw new IOError(ioe); } }
482483484485486487488489490491
@SuppressWarnings("unchecked") protected <T> T loadObject(ObjectInputStream inStream) { try { return (T) inStream.readObject(); } catch (IOException ioe) { throw new IOError(ioe); } catch (ClassNotFoundException cnfe) { throw new IOError(cnfe); } }
7475767778798081
vector.set(index, value); } wordsi.handleContextVector(termSplit[0], tokens[0], vector); } catch (IOException ioe) { throw new IOError(ioe); } }
5758596061626364656667
String line; try { line = document.readLine(); } catch (IOException ioe) { throw new IOError(ioe); } // Split the header from the rest of the context. The header must be // the focus word for this context. String[] headerRest = line.split("\\s+", 2);
114115116117118119120121
next = curLine.substring(matcher.start(), matcher.end()); break; } } catch (IOException ioe) { throw new IOError(ioe); } }
102103104105106107108109110
public LabeledDocument next() { LabeledDocument next = nextDoc; try { advance(); } catch (IOException ioe) { throw new IOError(ioe); } return next; }
180181182183184185186187
basis = new StringBasisMapping(); return new LatentSemanticAnalysis( false, dimensions, transform, factorization, false, basis); } catch (IOException ioe) { throw new IOError(ioe); } }
7273747576777879
} } dos.close(); return outFile; } catch (IOException ioe) { throw new IOError(ioe); } }
111112113114115116117118
Integer.parseInt(date.substring(0, 4)), Integer.parseInt(date.substring(4, 6)), Integer.parseInt(date.substring(6, 8))); curDocTimestamp = calendar.getTimeInMillis(); } catch (IOException ioe) { throw new IOError(ioe); } }
149150151152153154155156157158
// single token content.append(line.substring(lineStart)).append(" "); } } } catch (IOException ioe) { throw new IOError(ioe); } // There was no content left in this document. return null; }