diff --git a/ServerSide/Hinantin/ErrorCorpus/README.md b/ServerSide/Hinantin/ErrorCorpus/README.md index 562e959..697e4c3 100644 --- a/ServerSide/Hinantin/ErrorCorpus/README.md +++ b/ServerSide/Hinantin/ErrorCorpus/README.md @@ -67,12 +67,87 @@ Database 'HNTErrorCorpus' created in 281.39 ms. $ ``` -##### Step 4. Create a *tmp* folder, granting writing permissions for www-data +##### Step 4. Unccomment +Open the following file: ``` -$ mkdir -p /usr/lib/cgi-bin/spellcheck31/script/ErrorCorpus/tmp/ -$ cd /usr/lib/cgi-bin/spellcheck31/script/ErrorCorpus/ -$ sudo chmod -R 777 tmp -$ sudo chown www-data.www-data tmp +$ gedit /usr/lib/cgi-bin/spellcheck31/script/ssrv.cgi ``` +Uncomment the line that says: +``` + # $object->AddDocumentToErrorCorpus($text); +``` + +Notice that this will slow down your application. + +In order to see the error corpus entries log into *BaseX* and type *xquery collection('HNTErrorCorpus')* + +``` +$ basexclient +Username: admin +Password: +BaseX 7.9 [Client] +Try help to get more information. +> xquery collection('HNTErrorCorpus') +``` + +You will see something like this: + +``` + + mamay, waqachiq, punku, choqe, chaqllayuq, Punkuchaykita, kichaykullaway, Icharaq, mamaywan, tupaykullayman + + + mamay + + + waqachiq + + + punku + + + choqe + 5 + + chuqi + chupi + chupa + chhuqu + chuqin + chhuqu + chuqiy + chuqis + chuqim + chuqip + churi + chusi + chuki + ch'aqi + ch'iqi + + + + chaqllayuq + + + Punkuchaykita + + + kichaykullaway + + + Icharaq + + + mamaywan + + + tupaykullayman + + + +Query executed in 313.64 ms. + +```