org.square.qa.utilities.fileParsers
Class FileParserJStrings

java.lang.Object
  extended by org.square.qa.utilities.fileParsers.FileParserJStrings

public class FileParserJStrings
extends Object


Field Summary
 boolean coloumnSwitch
           
 
Constructor Summary
FileParserJStrings()
           
 
Method Summary
 void getFileName(String fileName)
          Get filename
 Set<String> parseCategories()
          Parse classes/categories/classes from input file
 Map<String,Double> parseCategoriesWPrior()
          Parse classes/categories with priors from input file
 Map<String,String> parseGoldStandard()
          Parse gold data from gold standard file
 Map<String,workersDataStruct<String,String>> parseWorkerLabels()
          Parse worker labels from worker responses file -- last line cannot be a blank line
 void setFileName(String fileName)
          Set filename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coloumnSwitch

public boolean coloumnSwitch
Constructor Detail

FileParserJStrings

public FileParserJStrings()
Method Detail

setFileName

public void setFileName(String fileName)
Set filename

Parameters:
fileName - is a String

getFileName

public void getFileName(String fileName)
Get filename

Parameters:
fileName - is a String

parseWorkerLabels

public Map<String,workersDataStruct<String,String>> parseWorkerLabels()
                                                               throws IOException
Parse worker labels from worker responses file -- last line cannot be a blank line

Returns:
worker responses stored as a Map from workers to responses
Throws:
IOException

parseGoldStandard

public Map<String,String> parseGoldStandard()
                                     throws IOException
Parse gold data from gold standard file

Returns:
gold responses as a Map from questions to responses
Throws:
IOException

parseCategoriesWPrior

public Map<String,Double> parseCategoriesWPrior()
                                         throws IOException
Parse classes/categories with priors from input file

Returns:
categories and priors as a Map
Throws:
IOException

parseCategories

public Set<String> parseCategories()
                            throws IOException
Parse classes/categories/classes from input file

Returns:
categories as a Set
Throws:
IOException


Copyright © 2013. All Rights Reserved.