Git Product home page Git Product logo

nlp_tool's Introduction

文本摘要提取小工具

使用华为智能云NLP接口实现文本摘要功能的web端小工具,部署在lean cloud上。

配置

1.注册一个leancloud账号,并开通一个app。将APP_ID和APP_KEY设置在/server.js中

  var APP_ID = process.env.LEANCLOUD_APP_ID || 'xxxxxxxxxxxxxxxxxxxxxxxx'; // 你的 app id
  var APP_KEY = process.env.LEANCLOUD_APP_KEY || 'xxxxxxxxxxxxxxxxxxxxxxxx'; // 你的 app key
  var MASTER_KEY = process.env.LEANCLOUD_APP_MASTER_KEY || 'xxxxxxxxxxxxxxxxxxxxxxxx'; // 你的 master key

  1. 在/hw_config.js 中设置华为云账号密码,以及projectID
  
exports.hw_username = "xxxxxxxxxxx";  //华为云用户名
exports.hw_domain_name = "xxxxxxxxxxx"; //华为云用户名
exports.hw_password = "xxxxxxxxxxx"; //华为云密码
exports.hw_project_id = "06e07f7d440026962f6fc01dac93f5fb";  //华为云project_id
[如何获取project_id](https://support.huaweicloud.com/api-nlp/nlp_03_0006.html)


部署

  1. 安装lean cloud命令行工具
  2. 使用如下命令把项目部署到lean cloud云引擎上
   lean deploy
   

本地测试

配置完成后,运行

   npm run test
   

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.