Class FileProcessor

java.lang.Object
edu.odu.cs.cs350.FileProcessor

public class FileProcessor extends Object
The main entry point for building a Corpus from a set of text files, and computing term frequency (TF) and TF-IDF values for analysis. Each file path should be supplied as a command-line argument. For example: java FileProcessor file1.txt file2.txt file3.txt This class uses txtFileProcessor to process each file into a Document, then adds those documents to a Corpus. Once all documents are processed, it computes and prints TF-IDF values for the top terms in each document.
  • Constructor Details

    • FileProcessor

      public FileProcessor()
  • Method Details

    • main

      public static void main(String[] inputArguments)
      Main method that runs the file processing pipeline.
      Parameters:
      inputArguments - file paths to process; each should point to a valid .txt file