public MalletStringOutcomeDataWriter(File outputDirectory) throws IOException { super(outputDirectory); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); }
public MalletStringOutcomeDataWriter(File outputDirectory) throws IOException { super(outputDirectory); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); }
public MaxentStringOutcomeDataWriter(File outputDirectory) throws IOException { super(outputDirectory); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); }
public WekaStringOutcomeDataWriter(File outputDirectory, String relationTag) throws IOException { super(outputDirectory); this.setFeaturesEncoder(new WekaFeaturesEncoder()); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); this.relationTag = relationTag; instanceFeatures = new ArrayList<Iterable<Feature>>(); instanceOutcomes = new ArrayList<String>(); outcomeValues = new HashSet<String>(); }
public WekaStringOutcomeDataWriter(File outputDirectory, String relationTag) throws IOException { super(outputDirectory); this.setFeaturesEncoder(new WekaFeaturesEncoder()); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); this.relationTag = relationTag; instanceFeatures = new ArrayList<Iterable<Feature>>(); instanceOutcomes = new ArrayList<String>(); outcomeValues = new HashSet<String>(); }
public MalletCrfStringOutcomeDataWriter(File outputDirectory) throws IOException { super(outputDirectory); NameNumberFeaturesEncoder fe = new NameNumberFeaturesEncoder(); fe.addEncoder(new NumberEncoder()); fe.addEncoder(new BooleanEncoder()); fe.addEncoder(new StringEncoder()); this.setFeaturesEncoder(fe); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); }
public MalletCrfStringOutcomeDataWriter(File outputDirectory) throws IOException { super(outputDirectory); NameNumberFeaturesEncoder fe = new NameNumberFeaturesEncoder(); fe.addEncoder(new NumberEncoder()); fe.addEncoder(new BooleanEncoder()); fe.addEncoder(new StringEncoder()); this.setFeaturesEncoder(fe); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); }
public CrfSuiteStringOutcomeDataWriter(File outputDirectory) throws FileNotFoundException { super(outputDirectory); NameNumberFeaturesEncoder fe = new NameNumberFeaturesEncoder(false, false); fe.addEncoder(new NumberEncoder()); fe.addEncoder(new BooleanEncoder()); fe.addEncoder(new StringEncoder()); this.setFeaturesEncoder(fe); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); }
public CrfSuiteStringOutcomeDataWriter(File outputDirectory) throws FileNotFoundException { super(outputDirectory); NameNumberFeaturesEncoder fe = new NameNumberFeaturesEncoder(false, false); fe.addEncoder(new NumberEncoder()); fe.addEncoder(new BooleanEncoder()); fe.addEncoder(new StringEncoder()); this.setFeaturesEncoder(fe); this.setOutcomeEncoder(new StringToStringOutcomeEncoder()); }