Skip to content

queval-j/word-prediction-webassembly

Repository files navigation

Word Prediction

This a project mainly to test Web Assembly.

How to test it?

To test the project, you will need:

  • Docker (to compile WASM files)
  • make

Optional:

  • node (to generate the mydb file)
  • http-server (to start a web server quickly npm install -g http-server)

Binary

To test without Web Assembly, you can simply execute: make re && ./build/my_autocomplete.

You should get:

[...]
he
a
==== Testing ====
Does "Hello" exist ? Yes
Does "Hell" exist ? No
Does "Mom" exist ? No
Predict word for "Hel":
=> Predict "lo" with a weight of 20000000
====> Found hello
Predict word for "Lok":
=> Predict "'tar" with a weight of 20000000
====> Found lok'tar
Predict word for "Nothing":
=> Unable to predict
Predict word for "examine":
=> Unable to predict

Web Assembly

To test with WebAssembly (Docker must be up and running):

$> make wasm
$> http-server .

About

Project to test Web Assembly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published