chunk.dense_cloud.classifyGroundPoints(max_angle=15.0, max_distance=1.0, cell_size=50.0)
To build model based on certain classes optional [classes] argument in chunk.buildModel() function should be used, where indices of the point classes should be specified.
chunk.buildModel(classes = [3,5])