Coder Social home page Coder Social logo

semantic_cs's Introduction

主题

文本分词提取,默认为按行读文本提取。主要用于csv文本分析。类似于趋势词查询、高热度词频分析。

使用方法

环境

python3

安装包

pip3 install -r requirements.txt

启动

主目录下,直接运行命令

uvicorn main:app --reload --port 8091 --host 0.0.0.0

接口文档及测试用例

访问 http://127.0.0.1:8091/docs

目前暂时有两个接口

词频排名

POST http://127.0.0.1:8091/file_c/word_frequency/ Content-Type:multipart/form-data

参数:{"file":文件名.csv}

返回结果为词频前百名及顺序排名

关键词匹配切分

POST http://127.0.0.1:8091/file_c/files/ Content-Type: multipart/form-data

参数:{"keyword":关键词,"threshold":相似度阈值,"file":文件名.csv}

返回结果为设定阈值以上的数据返回及匹配结果

GET http://127.0.0.1:8091/file_c/

简单页面返回,匹配的是关键词时间组合命名的数据结果,分为result.txt result_er.txt两个文件,分别是匹配结果文本与非匹配结果文本

semantic_cs's People

Contributors

gaoshengyue avatar

Stargazers

 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.