protected function getDocumentArray(TrainingSet $documents, FeatureFactoryInterface $ff)
    {
        $docs = array();
        foreach ($documents as $d) {
            $docs[] = $ff->getFeatureArray('',$d);
        }

        return $docs;
    }
protected function getDocumentArray(TrainingSet $documents, FeatureFactoryInterface $ff)
    {
        $docs = array();
        foreach ($documents as $d) {
            $docs[] = $ff->getFeatureArray('',$d);
        }

        return $docs;
    }
protected function getDocumentArray ( TrainingSet $ documents , FeatureFactoryInterface $ ff ) { $ docs = array ( ) ; foreach ( $ documents as $ d ) { $ docs [ ] = $ ff -> getFeatureArray ( '' , $ d ) ; } return $ docs ; }
Helper function to transform a TrainingSet to an array of feature vectors
Helper function to transform a TrainingSet to an array of feature vectors