CSVInputFormat

io.github.metarank.ltrlib.input.CSVInputFormat
object CSVInputFormat extends InputFormat

Attributes

Graph
Supertypes
trait InputFormat
trait Logging
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class CSVDataset(desc: DatasetDescriptor, queries: List[Query])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def load(groupColumn: String, labelColumn: String, data: InputStream): Either[DatasetError, CSVDataset]
def parseRow(row: Array[String], groupCol: Int, labelCol: Int, dim: Int): Either[DatasetError, LabeledItem]
def parseRows(header: Map[String, Int], groupColumn: String, labelColumn: String, reader: CSVReader, cols: Int): Either[DatasetError, List[LabeledItem]]

Inherited fields

val logger: Logger

Attributes

Inherited from:
Logging