Skip to content

Commit

Permalink
update document: how to build libmarisa/marisa-trie
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuwei committed Aug 19, 2017
1 parent 6b67c05 commit 4229f11
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ spell check:<br/>
## Paid Support

If functional you need is missing but you're ready to pay for it, feel free to contact me. If not, create an issue anyway, I'll take a look as soon as I can.

## about libmarisa / marisa-trie
1. the static `libmarisa.a` lib was built from [marisa-trie](https://github.com/s-yata/marisa-trie) @`59e410597981475bae94d9d9eb252c1d9790dc2f`
2. to build the `libmarisa.a` lib, run `configure --enable-static && make`
7 changes: 7 additions & 0 deletions dictionary/build-dict.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# configure --enable-static
# marisa-build -t /usr/share/dict/web2 -o ./dict-test

marisa-build -b ./google_227800_words.txt -o ./google-227800-words-trie.bin

# /usr/local/lib/libmarisa.a
# ls -alh lib/marisa/.libs/libmarisa.a
5 changes: 5 additions & 0 deletions dictionary/trie-search.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# marisa-predictive-search dict-test
marisa-predictive-search google-words-trie.bin

# /usr/local/lib/libmarisa.a
# ls -alh lib/marisa/.libs/libmarisa.a

0 comments on commit 4229f11

Please sign in to comment.