All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.nlp.io.PrintFile Maven / Gradle / Ivy

/**
 * Title:        StanfordMaxEnt

* Description: A Maximum Entropy Toolkit

* Copyright: Copyright (c) Bruce Eckel

* Company: Stanford University

* @author Bruce Eckel * @version 1.0 */ package edu.stanford.nlp.io; import java.io.*; /** * Shorthand class for opening an output file for human-readable output. * com:bruceeckel:tools:PrintFile.java */ public class PrintFile extends PrintStream { public PrintFile(String filename) throws IOException { super(new BufferedOutputStream(new FileOutputStream(filename))); } public PrintFile(File file) throws IOException { this(file.getPath()); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy