diff options
author | 2010-06-30 20:28:04 -0700 | |
---|---|---|
committer | 2010-07-13 11:33:39 -0700 | |
commit | 937d5ad0131267aa4273f3e5d75b203a1f263c18 (patch) | |
tree | b4a3bb6206aea92f5bacc3ebc1387ffdd5916f0c /tests/data | |
parent | b71547f2d065a17b268d1dbc896daab1820141a6 (diff) | |
download | latinime-937d5ad0131267aa4273f3e5d75b203a1f263c18.tar.gz latinime-937d5ad0131267aa4273f3e5d75b203a1f263c18.tar.xz latinime-937d5ad0131267aa4273f3e5d75b203a1f263c18.zip |
added bigram prediction
- after first character, only suggests bigram data (but doesn't autocomplete)
- after second character, words from dictionary gets rearranged by using bigram
- compatible with old dictionary
- added preference option to disable bigram
Change-Id: Ia8f4e8fa55e797e86d858fd499887cd396388411
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/bigramlist.xml | 36 | ||||
-rw-r--r-- | tests/data/wordlist.xml | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/data/bigramlist.xml b/tests/data/bigramlist.xml new file mode 100644 index 000000000..dd3f2916e --- /dev/null +++ b/tests/data/bigramlist.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2010, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<bigrams> + <bi w1="I'm" count="1"> + <w w2="about" p="100" /> + </bi> + <bi w1="about" count="3"> + <w w2="part" p="117" /> + <w w2="business" p="100" /> + <w w2="being" p="10" /> + </bi> + <bi w1="business" count="1"> + <w w2="people" p="100" /> + </bi> + <bi w1="from" count="1"> + <w w2="same" p="117" /> + </bi> +</bigrams> diff --git a/tests/data/wordlist.xml b/tests/data/wordlist.xml index 22d0caa38..b870eb2a3 100644 --- a/tests/data/wordlist.xml +++ b/tests/data/wordlist.xml @@ -225,6 +225,7 @@ <w f="179">services</w> <w f="170">niño</w> <w f="170">María</w> + <w f="70">car</w> <w f="0">hmmm</w> <w f="0">hon</w> <w f="0">tty</w> |