Page History
Starting the WebSpellChecker Server version 5.6.3.0, we added the ability to enable n-gram data sets to detect errors with words that are often confused, like their and there. This option is available for the English, German, French, Spanish, and Dutch languages. To enable n-gram data sets you need to perform the steps described in this guide.
1.Open the AppServerX.xml configuration file for editing. Before making any changes to the AppServerX.xml file, it is recommended to stop AppServer.
...
2.Find section with parameters responsible for configuration of n-gram data sets: PathToNgramData PathToNgramData.
Code Block | ||||
---|---|---|---|---|
| ||||
<!-- Path to n-gram data sets. Can be used to improve grammar quality. -->
<!-- <PathToNgramData></PathToNgramData>--> |
...
3. Uncomment the PathToNgramData parameter and set a path to unzipped folder of ngrams
Code Block | ||||
---|---|---|---|---|
| ||||
<PathToNgramData>your_path_to_ngrams</PathToNgramData> |
Info |
---|
<!-- Path example for Windows: C:/Program Files/WebSpellChecker/AppServer/NgramData/</PathToNgramData> --> |
4. Add the EnableNgramData parameter for each language you want to use n-grams .
Code Block | ||||
---|---|---|---|---|
| ||||
<EnableNgramData>true</EnableNgramData> |
This is an example of the for added EnableNgramData parameter for American English.
Code Block | ||||
---|---|---|---|---|
| ||||
<Language Id="en_US">
<Alias>en</Alias>
<Alias>am</Alias>
<GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions>
<EnableNgramData>true</EnableNgramData>
<ThesaurusEnabled>true</ThesaurusEnabled>
<SpellEngineOptions>
<Locale>am</Locale>
<SpellCheckProvider>ssce</SpellCheckProvider>
<Dictionary FullPath="ssceam2.clx">
<ForSuggest>no</ForSuggest>
</Dictionary>
<Dictionary FullPath="ssceam2s.clx">
<ForSuggest>yes</ForSuggest>
</Dictionary>
<Dictionary FullPath="sscema2.clx"/>
<Dictionary FullPath="keywords.clx"/>
<Dictionary FullPath="ssceam.tlx"/>
</SpellEngineOptions>
</Language> |