Finally have something working. A function now exists to return the (number of correctly classified sentnces) / (number of sentences) for a given document