Giter Site home page Giter Site logo

jeffylu / predictive-text Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 4.0 2.77 MB

英文写作助手,提供单词补全、短语提示等功能

Python 95.44% API Blueprint 4.56%
python predictive-text crawler django restful-api writing writing-articles writing-helper

predictive-text's Introduction

predictive-text


环境依赖

  • MySQL
  • Redis
  • Python3

使用方法

settings.py中修改数据库和缓存的配置信息,然后装pip包。

$ pip3 install -r requirements.txt

下载英文词汇words.txt并初始化数据。

$ python3 manage.py migrate
$ python3 manage.py init_data -c [num of cup]
$ python3 manage.py import_vocabulary -f [path to words.txt]

注册定时任务,两个任务分别用来更新每日新闻和分析一定数量的文章,从而提高补全或提示的准确性。

$ python3 manage.py crontab add

运行。

$ python3 manage.py runserver

API文档

文档是基于APIBlueprint语法写的,可以使用aglio来渲染。

$ aglio -i api.apib -s

访问localhost:3000效果如下: 效果

系统效果

predictive-text's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.