Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 798 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 798 Bytes

FoxboxNGrams

This is a small programming problem to test your technical ability and coding style.

Foxbox N-Grams Code Challenge

Instructions

Write a simple script to generate a set of n-grams from a string of text. N-grams are a contiguous sequence of n words from a string of text, and have many applications from full-text search indexes to machine learning.

You'll generate a set of every permutation of contiguous n-grams from a string of text, from 1-gram to n-grams where n is the number of words in the string

How to run it?

$ iex -S mix
iex(1)> FoxboxNGrams.Iterative.ngrams_permutation("Show me the code.")

How to test it?

$ mix test