9091929394959697
try { return (contents == null) ? new BufferedReader(new FileReader(fileName)) : new BufferedReader(new StringReader(contents)); } catch (IOException ioe) { throw new IOError(ioe); } }
6465666768697071
throw new IOException("Not sure what to do"); // return new LatentSemanticAnalysis( // true, dimensions, transform, factorization, false, basis); } catch (IOException ioe) { throw new IOError(ioe); } }
126127128129130131132133
br.close(); return questions; } catch (IOException ioe) { // rethrow, as any IOException is fatal to evaluation throw new IOError(ioe); } }
8384858687888990
*/ public SemanticSpace getSpace() { try { return new ExplicitSemanticAnalysis(); } catch (IOException ioe) { throw new IOError(ioe); } }
464465466467468469470471472473
coalsMatrixFile, Format.SVDLIBC_SPARSE_BINARY); reducer.factorize(processedSpace, reducedDimensions); finalCorrelation = reducer.dataClasses(); } catch (IOException ioe) { throw new IOError(ioe); } COALS_LOGGER.info("Done reducing using SVD."); } }
7879808182838485
} catch (javax.xml.parsers.ParserConfigurationException pce) { pce.printStackTrace(); } catch (org.xml.sax.SAXException saxe) { saxe.printStackTrace(); } catch (IOException ioe) { throw new IOError(ioe); } }
4748495051525354
nodes = extractor.readNextTree(reader()); } catch (IOException ioe) { // NOTE: this should never happen because we're being given the // parse string itself, so the reader passed to readNextTree() will // be reading from an in-memory buffer, rather than file throw new IOError(ioe); } }
106107108109110111112113114115
wordsAndNum[0], wordsAndNum[1], Double.parseDouble(wordsAndNum[2]))); } } catch (IOException ioe) { // rethrow as an IOE is fatal evaluation throw new IOError(ioe); } return pairs; }
7475767778798081
*/ protected SemanticSpace getSpace() { try { return new VectorSpaceModel(); } catch (IOException ioe) { throw new IOError(ioe); } }
public WaCkypediaDocumentIterator(String documentsFile) { try { documentsReader = new BufferedReader(new FileReader(documentsFile)); nextLine = advance(); } catch (IOException ioe) { throw new IOError(ioe); } }