TfIdf functions to return depth and width.