public void train(String corpusFileName,String pipelineModelFileName,int numFeatures){
  JavaRDD<String> jrdd=jsc.textFile(corpusFileName);
  train(jrdd.collect(),pipelineModelFileName,numFeatures);
}

public void train ( String corpusFileName , String pipelineModelFileName , int numFeatures ) { JavaRDD < String > jrdd = jsc . textFile ( corpusFileName ) ; train ( jrdd . collect ( ) , pipelineModelFileName , numFeatures ) ; }
trains a whitespace classifier model and save the resulting pipeline model to an external file .
