
org.canova.api.io.labels.PathLabelGenerator Maven / Gradle / Ivy
package org.canova.api.io.labels;
import org.canova.api.writable.Writable;
import java.net.URI;
/**
* PathLabelGenerator: interface to infer the label of a file directly from the path of a file
* Example: /negative/file17.csv -> class "0"; /positive/file116.csv -> class "1" etc.
* Though note that the output is a writable, hence it need not be numerical.
* @author Alex Black
*/
public interface PathLabelGenerator {
Writable getLabelForPath(String path);
Writable getLabelForPath(URI uri);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy