public class FirstExamplesSelector extends Object implements ExampleSelector
m
examples from a
Dataset
.Constructor and Description |
---|
FirstExamplesSelector(int m) |
Modifier and Type | Method and Description |
---|---|
int |
getM() |
List<Example> |
select(Dataset dataset)
This function allows to select a subset of
Example s from the
input Dataset |
List<Example> |
select(DatasetReader datasetReader)
This function allows to select a subset of
Example s from the
input DatasetReader |
public FirstExamplesSelector(int m)
m
- The number of Example
s to be selected.public int getM()
m
- The number of Example
s to be selected.public List<Example> select(Dataset dataset)
ExampleSelector
Example
s from the
input Dataset
select
in interface ExampleSelector
dataset
- A dataset to select Example
s from.Example
s.public List<Example> select(DatasetReader datasetReader) throws IOException, InstantiationException, ParsingExampleException
Example
s from the
input DatasetReader
dataset
- A DatasetReader
to select Example
s
from.Example
s.ParsingExampleException
IOException
InstantiationException
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.