I am trying to build a chatbot using program AB, aiml and android studio.
I put all my aiml files in assets folder : something like this assets/bots/alice2/aiml files(including sets, maps, aiml, aimlif and config)
then I create my bot and try to connect to it by this code:
String botname="alice2";
String path = "file:///android_asset";
Bot alice2 = new Bot(botname,path);
Chat chatSession = new Chat(alice2);
String request = mEdit.getText().toString();
String response = chatSession.multisentenceRespond(request);
((Button)v).setText(response);
but there seems to be a problem connecting to aiml files cause whatever I send as a request the only response I receive is "I HAVE NO ANSWER FOR THAT" which is integrated in it.
What I See in the logcat is that the project can find the aiml files at first but then it says they don't exist! does anyone know why this happens? Here's what's in logcat:
8611-8611/com.example.myapplication I/System.out? Name = alice2 Path = file:///android_asset/bots/alice2
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? c:/ab
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? **file:///android_asset/bots**
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? file:///android_asset/bots/**alice2**
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? file:///android_asset/bots/alice2/**aiml**
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? file:///android_asset/bots/alice2/**aimlif**
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? file:///android_asset/bots/alice2/**config**
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? file:///android_asset/bots/alice2/**logs**
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? file:///android_asset/bots/alice2/**sets**
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? file:///android_asset/bots/alice2/**maps**
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? Preprocessor: 0 norms 0 persons 0 person2
10-24 13:04:46.162 8611-8611/com.example.myapplication I/System.out? Get Properties: file:///android_asset/bots/alice2/config/**properties.txt**
10-24 13:04:46.172 8611-8611/com.example.myapplication I/System.out? addAIMLSets: file:///android_asset/bots/alice2/**sets does not exist.**
10-24 13:04:46.172 8611-8611/com.example.myapplication I/System.out? Loaded 0 set elements.
10-24 13:04:46.172 8611-8611/com.example.myapplication I/System.out? addAIMLMaps: file:///android_asset/bots/alice2/**maps does not exist.**
10-24 13:04:46.172 8611-8611/com.example.myapplication I/System.out? Loaded 0 map elements
10-24 13:04:46.172 8611-8611/com.example.myapplication I/System.out? Read pronouns: []
10-24 13:04:46.222 8611-8611/com.example.myapplication I/System.out? AIML modified Thu Jan 01 03:30:00 GMT+03:30 1970 AIMLIF modified Thu Jan 01 03:30:00 GMT+03:30 1970
10-24 13:04:46.222 8611-8611/com.example.myapplication I/System.out? addCategoriesFromAIMLIF: file:///android_asset/bots/alice2/**aimlif does not exist.**
10-24 13:04:46.222 8611-8611/com.example.myapplication I/System.out? Loaded 0 categories in 0.002 sec
10-24 13:04:46.222 8611-8611/com.example.myapplication I/System.out? **No AIMLIF Files found.** Looking for AIML
10-24 13:04:46.222 8611-8611/com.example.myapplication I/System.out? addCategoriesFromAIML: file:///android_asset/bots/alice2/**aiml does not exist.**