Giter Site home page Giter Site logo

den1s0v / c_owl Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 75.36 MB

Algorithm & mistakes trace checking (procedural programming domain)

Python 33.39% Batchfile 0.03% Prolog 13.17% Jupyter Notebook 0.54% JavaScript 34.40% HTML 4.21% CSS 0.53% Ruby 4.04% Classic ASP 8.87% Smarty 0.15% MAXScript 0.68%

c_owl's Introduction

Build Status

Генерация (нет ;-)) и проверка заданий по алгоритмическим структурам при помощи логического вывода на онтологии

Приближение 1. Алгоритмические структуры и трасса пошагового исполнения программы (Algorithmic structures and a trace of stepwise program execution)

Construction of algorithm execution traces and student trace verification

Status: proof-of-concept prototype.

Задача: по данному алгоритму и фрагменту трассы найти все ошибки и сгенерировать понятные человеку объяснения по каждой из них.

(Task: find all mistakes using this algorithm and a trace fragment and generate explanations for each of them that are clear to people.)

  • note that all the examples (see handcrafted_traces/\*.txt) designed in Russian language.

Технологии (Technologies)

Требования (Prerequisites)

  • Python 3.6+ (tested on 3.7, 3.9)
  • Stanford Protégé 5.5 [optional]

Установка (Setup)

pip3 install -r requirements.txt

Запуск (Run) веб-сервера Flask

Запуск с параметрами по умолчанию:

python3 -u web_server.py

(Или start-web-server.bat на Windows)

Запуск с указанием хоста и/или порта:

python3 -u web_server.py host=109.206.169.214

python3 -u web_server.py port=2020

python3 -u web_server.py host=localhost port=1234

Небольшое замечание: Включение режима DEBUG не вынесено в параметры командной строки, т.к. по умолчанию этот режим активируется только на Windows (см. далее).

Изменение настроек по умолчанию

В options.py можно задать несколько опций, который влияют на работу веб-сервиса, в зависимости от платформы, на которой производится запуск:

  • DEBUG - True: запуск в режиме отладки (медленный development server - включен только на Windows), False: используется быстрый кросс-платформенный сервер waitress (зато не показывает ошибки в процессе работы сервера)

  • RUN_LOCALLY - запускать на localhost (True) или в конфигурации для некоторого VDS (False).

Порт по умолчанию задан как 2020, подробнее - см. конец файла web_server.py.

Использование

После запуска веб-сервера на localhost:2020 становятся доступны несколько страниц:

  • /demo - Демонстрационная страница, подготовленная для ISWC2020 (может уже не работать корректно)
  • /api_test - Описание API (пока что 2 запроса) и кнопки для их тестирования
  • и др. оговоренные точки доступа.

c_owl's People

Contributors

den1s0v avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

shadowgorn

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.