From 4229f11fac77de15a9f4d38ee74fa03290c5abb9 Mon Sep 17 00:00:00 2001 From: Dong Yuwei Date: Sat, 19 Aug 2017 23:14:43 +0800 Subject: [PATCH] update document: how to build libmarisa/marisa-trie --- README.md | 4 ++++ dictionary/build-dict.sh | 7 +++++++ dictionary/trie-search.sh | 5 +++++ 3 files changed, 16 insertions(+) create mode 100644 dictionary/build-dict.sh create mode 100644 dictionary/trie-search.sh diff --git a/README.md b/README.md index 62c48fb..1f9cfbe 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,7 @@ spell check:
## 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` diff --git a/dictionary/build-dict.sh b/dictionary/build-dict.sh new file mode 100644 index 0000000..ae37a93 --- /dev/null +++ b/dictionary/build-dict.sh @@ -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 diff --git a/dictionary/trie-search.sh b/dictionary/trie-search.sh new file mode 100644 index 0000000..cedb444 --- /dev/null +++ b/dictionary/trie-search.sh @@ -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 \ No newline at end of file