public class AnalyzeDigrams extends Object
Usage: java AnalyzeDigrams -c freqfile textfile [textfile ...]
With the "-c" flag (create), the program reads the given text file or files, computes the frequencies, and stores the frequencies in the given frequency file, overwriting the frequency file.
Usage: java AnalyzeDigrams -u freqfile textfile [textfile ...]
With the "-u" flag (update), the program reads the frequencies from the given frequency file, reads the given text file or files, updates the frequencies, and stores the frequencies back in the given frequency file.
Usage: java AnalyzeDigrams -p freqfile
With the "-p" flag (update), the program reads the frequencies from the given frequency file and prints them. The frequency file is not updated.
The frequency file contains one streamed object: a histogram of the digrams (class DigramHist).
Copyright © 2017 by Alan Kaminsky. All rights reserved. Send comments to ark@cs.rit.edu.