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

edu.isi.nlp.io.OffsetIndex Maven / Gradle / Ivy

The newest version!
package edu.isi.nlp.io;

import com.google.common.base.Optional;
import edu.isi.nlp.strings.offsets.ByteOffset;
import edu.isi.nlp.strings.offsets.OffsetRange;
import edu.isi.nlp.symbols.Symbol;
import java.util.Set;

/**
 * Maps keys to offset ranges. This is useful when, for example, many documents are concatenated
 * together and you wish to pull one out of the middle.
 */
public interface OffsetIndex {

  Optional> byteOffsetsOf(Symbol key);

  Set keySet();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy