Returns a new data set containing the original data points that were loaded with this loader. @return an appropriate data set for this loader
()
| 305 | * @return an appropriate data set for this loader |
| 306 | */ |
| 307 | public DataSet getDataSet() |
| 308 | { |
| 309 | if(!noMoreAdding) |
| 310 | { |
| 311 | initialLoad(); |
| 312 | finishAdding(); |
| 313 | } |
| 314 | |
| 315 | List<DataPoint> dataPoints= new ArrayList<DataPoint>(vectors.size()); |
| 316 | |
| 317 | for(SparseVector vec : vectors) |
| 318 | dataPoints.add(new DataPoint(vec, new int[0], new CategoricalData[0])); |
| 319 | |
| 320 | return new SimpleDataSet(dataPoints); |
| 321 | } |
| 322 | |
| 323 | /** |
| 324 | * To be called after all original texts have been loaded. |
nothing calls this directly
no test coverage detected