edu.isi.nlp.io.CharacterChannelSet Maven / Gradle / Ivy
The newest version!
package edu.isi.nlp.io;
import com.google.common.base.Optional;
import com.google.common.io.CharSource;
import edu.isi.nlp.files.KeyValueSource;
import edu.isi.nlp.symbols.Symbol;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Set;
/**
* Something which contains multiple 'channels' of character data, indexed by {@link Symbol}s.
*
* This should get merged/replaced with the newer {@link KeyValueSource} code.
*/
public interface CharacterChannelSet {
Set channelSet();
Optional channelAsCharSource(Symbol key, Charset charset) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy