public override string ToString() { if ( featureIndex == null ) return UNINITIALIZED; StringWriter sw = new StringWriter(); TabularOutput t = new TabularOutput( sw ); t.flushEvery( Int32.MaxValue ); t.addColumn( "#" ); t.addColumn( "featureIdx" ); t.addColumn( "=>feature" ).alignLeft(); t.addColumn( "documentIdx" ).alignLeft(); for ( int i = 0; i < featureIndex.Length; i++, t.nextRow() ) { t.rowData( i, featureIndex[i], getLabel( i ), documentIndices != null ? documentIndices[i].toString().replace( " ", "" ) : "" ); } t.flush(); sw.Write( "\n" ); return t.toString(); }