Skip to content

stagerightlabs/freq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Freq - Frequency Analysis API

Perform frequency analysis on the letters in a piece of text. Works in the console or via API.

Command Line Usage

First compile the binary:

$ go build

You can provide the text to be analyzed as an argument to the command:

$ ./freq --text "You have power over your mind - not outside events. Realize this, and you will find strength. - Marcus Aurelius"

Alternatively, you can specify a file to be analyzed:

$ ./freq --file _data/marcus.txt

API Usage

First compile the binary:

$ go build

Launch the server:

$ ./freq --serve --host 0.0.0.0 --port 8080

If not otherwise specified, the default host will be 0.0.0.0 and the default port will be 80.

You can test the API response with curl:

$ curl -X POST -id "text=You have power over your mind - not outside events. Realize this, and you will find strength. - Marcus Aurelius" localhost:8080/freq

About

Perform frequency analysis on text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages