edu.columbia.cs.ref.tool.io
Class CandidatesSentenceReader

java.lang.Object
  extended by edu.columbia.cs.ref.tool.io.CandidatesSentenceReader

public class CandidatesSentenceReader
extends java.lang.Object

This class provides a static method that can be used to read a set of candidate sentences from a file.

The file read by this class must be a file that was written with the CandidatesSentenceWriter class.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes

Constructor Summary
CandidatesSentenceReader()
           
 
Method Summary
static java.util.Set<CandidateSentence> readCandidateSentences(java.lang.String input)
          Method to read a set of candidate sentences from a file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CandidatesSentenceReader

public CandidatesSentenceReader()
Method Detail

readCandidateSentences

public static java.util.Set<CandidateSentence> readCandidateSentences(java.lang.String input)
                                                               throws java.io.IOException,
                                                                      java.lang.ClassNotFoundException
Method to read a set of candidate sentences from a file. The path to the file is given as input

Parameters:
input - path to the file that contains the candidate sentences
Returns:
the set of candidate sentences present in the file
Throws:
java.io.IOException
java.lang.ClassNotFoundException