A program to do lexical frequency analysis, written in C and Julia for speed and fun :)
- C 75.1%
- Julia 20.7%
- Makefile 4.2%
| c | move C implementation to a seperate folder | |
| examples | don't automatically add examples | |
| .gitignore | clean up project files | |
| freq.jl | update docs | |
| Frequency.jl | to_csv: wrap key in quotation marks to distinguish from strings with | |
| LICENSE | Add MPL | |
| README.md | update docs | |
Frequency Analysis
This is an experiment in doing frequency analysis over large amounts of text.
This was originally accomplished in C (found in c/), but I decided to
re-implement it in Julia because it allowed me to maintain most of the speed
from C while making processing substantially easier, as it included tools
for working with Unicode text, as well as other string processing utilities.
The program is freq.jl, which relies on library functions found at
Freqency.jl. The program aggregates data from inputs, and outputs a
CSV of words to stdout.
Usage: julia -t$NTHREADS freq.jl path/to/inputs/* > output.csv. $NTHREADS
is assumed to be the number of threads for Julia to use.