private StringWrapper prepareForLearner ( StringWrapper w , StringDistanceLearner learner ) { StringWrapperIterator it = new BasicStringWrapperIterator ( Collections . singleton ( w ) . iterator ( ) ) ; return learner . prepare ( it ) . nextStringWrapper ( ) ; }
Prepare a single StringWrapper for a learner