#Data Collection for SLU Task
To use this application,
- Make dev.js file inside config folder
- Put mongoDB info into dev.js file:
module.exports = {
mongoURI: 'mongodb://localhost:27017/data-collection'
}
- Type " npm install " inside the root directory ( Download Server Dependencies )
- Type " npm install " inside the client directory ( Download Front-end Dependencies )
- In root directory, type
"npm run dev" to launch app or"npm run backend" to run backend :p
I don't know how to refactor code in socket file... I don't know how to test the room slotting feature by myself... can't create a 3rd accounts to do this for me. (Need to work on the signaling too, telling em that the room is already full).
If you want to re-use this code for your own needs, replace these things:
- Your intent.js in /server/config, INTENT, GENERIC_INTENT and SLOT_LABEL must be kept, others ain't matter.
- update the database according to your new intent.js file
- Either update or delete every flattenIntent() functions
- Update every createRandomIntent() functions to your liking.
- Here're 2 groups of keywords you might want to search for in this repo:
["city", "district"]
["four_last_digits", "cmnd", "name"]
They go in group so just pick one and the rest will come out