Git Product home page Git Product logo

data_collection's Introduction

#Data Collection for SLU Task

To use this application,

  1. Make dev.js file inside config folder
  2. Put mongoDB info into dev.js file:
module.exports = {
    mongoURI: 'mongodb://localhost:27017/data-collection'
}
  1. Type " npm install " inside the root directory ( Download Server Dependencies )
  2. Install python 3.8 and pip i -r requirements.txt
  3. In root directory, type "npm run backend" || "npm start" to launch app

data_collection's People

Contributors

ds-cong-phung avatar piapip avatar thanhcongphung avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

piapip

data_collection's Issues

Leave room notifications

Overview

Khi 1 trong 2 user rời phòng.

Task

  • Lưu lại nội dung trong phòng.
  • Notify người kia rằng sắp bị đá ra khỏi phòng.
  • Destroy phòng.
  • Đá người kia ra khỏi phòng.

Notes

Temporary upload

Overview

Sau khi gửi audio/chat, audio/chat chưa được lưu thật vào server mà lưu tạm vào đâu đó. Chỉ khi nào conversation kết thúc thì data mới được chính thức lưu vào server.

Task

  • Tạo db để lưu thông tin temp data.
  • Lưu db vào temp khi gửi.
  • Lưu db vào server khi conversation kết thúc.
  • Xóa temp slot khi conversation kết thúc.

Notes

Chat Text Screen

Overview

Task

  • [Tạo chat text giữa 2 user ]
  • [get lịch sử chat ]

Notes

Record.

Xem qua record-js gì đó để có chức năng record âm thanh. Hiện tại đang dự định là record cả hội thoại vào một file.

Bug: Disconnect announcement

Bug từ #22, giả sử trong phòng có A và B, khi B leave room bằng cách là redirect sang chỗ khác của page (ví dụ chạy về homepage) thì thông báo oke. Nhưng khi B leave room bằng cách disconnect (đóng tab chẳng hạn) thì A không nhận được thông báo là B đã rời phòng.

Socket

Tạo socket cho phòng chat.

After send audio

Sau khi gửi audio phải clear audio trên màn hình, cho cái vừa record vào lịch sử clear hết sạch mọi thứ. Rồi update audio cho cả phòng.

Đăng nhập.

Cho phép người dùng đăng nhập nhanh bằng gmail hoặc facebook.

Phòng chat.

  • Tạo phòng chat cho 2 người ngay sau khi đăng nhập.
  • Phòng chat cần có ít nhất:
    • ID tự gen.
    • Màn hình hiển thị task chung.
    • Nút để bấm record.

Intent

Overview

Generate intent cho client và tập hợp tất cả intent cho servant.

Task

  • Nhét tất cả intent vào 1 file JSON hoặc db rồi tạo api để kéo chúng nó ra.
  • Update UI gen random cho cả servant và client.

Notes

UI chọn content_type

Overview

Như là chọn role trong LOL ý.

Task

  • 3 content_type: "text" hoặc "audio" hoặc "bất kì"
  • Implement vào frontend

Notes

Add count down timer for prompt modal.

Overview

User sẽ có 5 giây để prompt sẵn sàng lần 2 trước khi bị đá ra ngoài.

Task

  • Update UI trong modal. Thay cả cái modal thành cái timer thì càng tốt.
  • Sau 5 giây không prompt, thì nghiễm nhiên coi là không xác nhận.

Notes

Thêm role cho user

User cần có 2 role:

  • User thường: ra lệnh này nọ.
  • Watcher/Wizard: tiếp nhận lệnh của user thường, trả về câu trả lời tương ứng để yêu cầu thêm thông tin hoặc báo đã xác nhận task.

Notification.

Khi 2 người dùng tag xong thì server phải báo cho 2 người đó là có tag khớp nhau hay không.

Cancel the second prompt.

Overview

Update socket khi user chọn "từ chối tham gia phòng" hoặc lỡ miss mất prompt lần 2.

Task

  • Đá ra khỏi queue trong socket.
  • Đưa người kia quay lại LÊN ĐÂU queue tương ứng.

Notes

Danh sách task.

Trong chatroom cần danh sách task cho user 1.
Danh sách checklist thông tin thu được từ user1 cho user2 để user2 hỏi thêm.

Socket flow.

Overview

Mô tả data flow truyền qua socket.

Task

  • Vẽ ra, bằng gì cũng được.
  • [ ]

Notes

Tạo branch dev.

Master là branch để deploy.
Branch dev là branch merge.
Tự code trên mỗi branch riêng rồi gửi pull request qua issue sau khi làm xong.

Bug: unique login place.

Overview

Cần đảm bảo tài khoản chỉ được đăng nhập trên 1 tab của 1 browser.

Task

  • Xem lại auth và chỉnh lại logic của auth sao cho không cho online tại nhiều nơi. Login nơi này = logout tất cả nơi còn lại.

Notes

Tránh trường hợp, 1 account queue 2 lần, sinh ra trường hợp match trùng account

Quick sign up.

Đăng kí chỉ bằng cách nhập tên. Đăng kí xong cần bắn thẳng vào trang chủ không bắt đăng nhập lại nữa.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.