Giter Site home page Giter Site logo

django_thesis's Introduction

django_thesis

Cài đặt môi trường và tải weights của model

Môi trường

Cài đặt python version 3.x từ trang web Có 2 cách để cài đặt môi trường:

Cài đặt từ đầu

Sử dụng pip (pip3) để cài các thư viện cần thiết, chạy tên Command Prompt '''pip install -r requirements.txt'''

Sử dụng môi trường ảo - python virtual environment đã được thiết lập sẵn

Tải folder myenv chứa môi trường ảo tại đây, giải nén tại folder chính ta được folder myenv.

Mở Command Prompt chạy '''myenv\Scripts\activate.bat'''

Tải weights

Vì weights có dung lượng lớn nên sẽ download qua drive với tên file django_thesis_weights.zip

Để file nén vào folder chính và giải nén trực tiếp 3 folder chứa weights: CoLA, MNLI và bert-base-uncased

Các sử dụng

Các trang web tham khảo về các sample cho demo

Link dataset GLUE, lựa chọn CoLA hoặc MNLI ở mục subset bên trái.

Các bước sử dụng

Ở ngoài folder chính (django_thesis), chạy '''python manage.py runserver''', đợi một lúc cho app và model được khởi tạo như hình dưới đây.

runserver

Mở trình duyệt, nhập vào '''http://127.0.0.1:8000/home/''' để vào trang home, ta được như hình dưới đây.

home

Dùng trang web dataset như hình dưới để lấy ví dụ nhập input vào app. Với:

Task CoLA: ta chọn Your task * là CoLA, input câu cần classify vào Your first sentence * (Không cần quan tâm second sentence) và nhấn button đỏ Send Message and Classify.

Task MNLI: ta chọn Your task * là MNLI, input câu cần classify vào Your first sentence *Your second sentence *, nhấn button đỏ Send Message and Classify.

data

Kết quả sẽ hiện thị ở trang model:

model

django_thesis's People

Contributors

duyngtr16061999 avatar

Watchers

 avatar

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.