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

org.canova.api.io.labels.PathLabelGenerator Maven / Gradle / Ivy

There is a newer version: 0.0.0.8
Show newest version
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