Giter Site home page Giter Site logo

kurikinton105 / summary_class_public Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 749 KB

機械学習の授業でのプレゼン用のプロトタイプです。bag-of-wordsを利用した文章要約アプリケーションです。

Jupyter Notebook 77.78% Python 20.00% CSS 0.20% HTML 2.02%

summary_class_public's Introduction

MakeClassEasy

概要

Azure Speech と bag-of-wordsを使って、録音した授業の音声データから授業の要約を作ろうというプロジェクト

作成者

yama @kurikinton105

tomSoya @tomsoyaN

jima884 @jima884

実行方法

全手順において,まずこのレポジトリをダウンロードしておきます.
初めに必要なライブラリのインストールを行います.

ライブラリのインストール

ターミナルでsummary_class_publicフォルダ内に移動し

   $echo termextract==0.12b0 >> requirements.txt

を実行した後,

    $pip install -r requirements.txt
    または
    $py -m install -r requirements.txt

を実行する

・音声ファイルからテキストファイルに変換する.

音声ファイルをテキスト化する処理を行いたい場合,このレポジトリ内のipynbsディレクトリ内の Speech2Text.ipynbを使用します.
前提としてAzureのSpeechAPIのアクセスキーを取得しておく必要があります.
取得したキー及び地域をipynbs/password.py内に記載してください.

・JupyterNoteBook上で実行する場合

JupyterNoteBookを起動.このレポジトリ内の ipynbsフォルダのProgram.ipynbを実行することで,結果が出力されます.
sampledata.txtの内容を置き換えることで,別のテキストの要約ができます.
詳しくはipynb内のREADMEを参照.

・Flask上で実行する場合

このレポジトリをダウンロードし,ターミナルを起動.
cdでこのレポジトリに移動した後,以下のコマンドを実行する.

MAC,Linux系のターミナルの場合

    export FLASK_APP=application.py
    flask run

WindowsのCMDプロンプトの場合

    set FLASK_APP=application.py
    flask run

Windowsのパワーシェルの場合

    $env:FLASK_APP = "application.py"
    flask run

127.0.0.1:5000及び127.0.0.1:5000/developにアクセスすることで,WEBアプリケーション版を利用できます.

デモ

AzureにWEBアプリケーションとして公開しています。

文章か要約,重要語抽出を行う部分のみです

WEBアプリケーション

https://summary-classes-web.azurewebsites.net/

使用技術

Azure Speech

Bag-of-words

Cos類似度

参照

termextract

http://gensen.dl.itc.u-tokyo.ac.jp/

のコードを使用しています。

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.