Fixed DocumentFrequency creation from a file.