Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java application that implements a basic Text Analyzer. The Java application will analyze text stored in a text file. The user should be

Write a Java application that implements a basic Text Analyzer. The Java application will analyze text stored in a text file. The user should be able to select a file to analyze and the application should produce the following text metrics:

Number of characters in the text.

Relative frequency of letters in the text in descending order. (How the relative frequency that you calculated compares with relative letter frequencies in English already published?)

Number of words in the text.

The sizes of the longest and the shortest word.

The twenty most repeated uni-grams (single words) in the text in descending order.

The twenty most repeated bi-grams (pairs of words) in the text in descending order.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions