private static void learn(){
  int listSize=learningQueue.size();
  LOG.info("THE classifier will be retrained on new list of" + listSize);
  for (int i=0; i < listSize; i++) {
    Instance inst=learningQueue.poll();
    if (inst != null)     learner.trainOnInstance(inst);
  }
}

private static void learn ( ) { int listSize = learningQueue . size ( ) ; LOG . info ( "THE classifier will be retrained on new list of" + listSize ) ; for ( int i = 0 ; i < listSize ; i ++ ) { Instance inst = learningQueue . poll ( ) ; if ( inst != null ) learner . trainOnInstance ( inst ) ; } }
initiates a learning process .
