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

        return $docs;
    }