Java backend for ASoulCnki

Overview

A-SOUL评论区小作文 枝网查重系统 后端

源项目:https://github.com/stream2000/ASoulCnki 网站地址:https://asoulcnki.asia

部署

1 系统要求

  1. Java 8
  2. Java堆内存1500M及其以上

2 运行

2.1 依赖json文件运行

  1. 修改application-demo.yml中的secure.key
  2. 将bilibili_cnki_reply.json放入data文件夹(json数据文件可以联系项目管理者获取)
  3. 运行springboot后端
  4. 调用后端train接口训练数据 训练需要较长时间(约一分钟)
    示例请求(python):
import requests
CONTROL_SECURE_KEY = "123456" #注意修改为application-demo.yml中的secure.key
base_url = "http://localhost:8000/v1/api/data/train"
r = requests.post(base_url, json={'secure_key': CONTROL_SECURE_KEY, 'start_time': 0})
print(r.json())

2.2 依赖数据库运行

需要预先安装docker

sh bin/start.sh # 启动docker
sh bin/do_setup.sh # 初始化数据库, 需要等待mysql初始化完成,约10s

如果想清理数据文件, 执行下面命令即可

sh bin/cleanup.sh 

在初始化数据库完成后,启动项目,可以按照2.1的方式训练数据,也可以参照api文档从数据库拉取数据来训练

2.3 使用docker运行

mvn clean package docker:build # 构建镜像
docker run api:1.0-SNAPSHOT # 启动docker
You might also like...

A backend for Asciidoctor used to produce Spring styled HTML

Asciidoctor Spring Backends Alternative HTML conversion for Asciidoctor with a Spring "look and feel". Maven build integration You can use the Asciido

Dec 14, 2022

Backendini Javada Frontendini ise React ile yazacağım insan kaynakları yönetim kısmınının backend kısmıdır

Backendini Javada Frontendini ise React ile yazacağım insan kaynakları yönetim kısmınının backend kısmıdır

İnsan Kaynakları Yönetim Sistemi insan kaynaklarının, iş süreçlerinin ve verilerin kolay yönetimini sağlamak için bir dizi sistemi ve işlemi birleştir

Dec 5, 2022

backend for a sharing app using SpringBoot, Redis, MySQL, and AWS S3.

backend for a sharing app using SpringBoot, Redis, MySQL, and AWS S3.

moments_v2_backend (Work In Progress) backend for a sharing app using SpringBoot, Redis, MySQL, and AWS S3. This is the second version of my project S

Dec 26, 2022

Human Resource Management System - Backend

Human Resource Management System - Backend

Human Resource Management System - Backend File Structure 🏗️ Layered Architecture Entities - The package in which the assets are kept DataAcces - Pac

Jan 1, 2023

Backend For Human Resource Management System

Backend For Human Resource Management System

📝 Presentation This is a hrms project. At the backend of this project I used Java(Spring Boot) and I used PostgreSQL as database management. At the f

Aug 5, 2022

A repository that contains the backend part of the Human Resources Management System.

Human Resources Management System Backend A human resources management system is a form of human resources (HR) software that combines several systems

Dec 26, 2022

Backendini Javada Frontendini ise React ile yazacağım insan kaynakları yönetim kısmınının backend kısmıdır

Backendini Javada Frontendini ise React ile yazacağım insan kaynakları yönetim kısmınının backend kısmıdır

İnsan Kaynakları Yönetim Sistemi insan kaynaklarının, iş süreçlerinin ve verilerin kolay yönetimini sağlamak için bir dizi sistemi ve işlemi birleştir

Dec 5, 2022

A Graphics2D implementation targeting Skija as a backend.

A Graphics2D implementation targeting Skija as a backend.

SkijaGraphics2D Version 1.0.2, 4 August 2021 Overview SkijaGraphics2D is an implementation of Java2D's Graphics2D API that targets Skia via the Skija

Dec 29, 2022

In this course, we will learn how to build a complete full-stack web application using Spring boot as backend and React (React Hooks) as frontend

In this course, we will learn how to build a complete full-stack web application using Spring boot as backend and React (React Hooks) as frontend. We will use MySQL database to store and retrieve the data.

Dec 22, 2022
Comments
  • 我们能做些什么吗

    我们能做些什么吗

    目前发生了这一切,这三天来相信都大家看到了, au 还是一盘散沙,不缺热情却不知如何攻击,都是不要钱的水军但却不知道怎么水,甚至还在内斗,被拉拢分化。究其原因,就是因为缺乏饭圈的手段,也缺乏大佬组织,把乱哄哄的 au 收编为有力的正规军。

    现在 b 站也不乏有询问饭圈姐姐怎么做,甚至给出指导方案的。但是大家其实潜意识里都知道这不会成,因为人数太少势单力薄,加之 as 一直没有小团体的情况,au 里我相信是有饭圈姐姐的,但是大家不聚在一起,就算见多了饭圈的操作,相信大家潜意识里也不会相信能成事,然后就把情绪停留在胡乱输出,一拳打在棉花上。

    如果大家能团结到一起,能把事搞大,有组织有纪律,可能至少能把这件事,在字节内部的舆情处理上,提高几个等级。能够更恶心字节一点。

    我觉得我们主要需要

    1. 有一个地方能聚拢 au,能让 au 知道自己做什么才会变好,
    2. 一些有权威的人,比如贾布这样的大佬,或者各种xx周报之类的代表,或者比如像枝网这样的开发者,靠这些人统领 au。加上能知道怎么输出的饭圈姐姐作为指导,来带领大家冲锋,把力往一处使

    我是个普通 au。我本身也是没有什么领导能力的。如果是个人,做这个组织的事,压力会很大,也会投入很多精力,所以大家看了都怕不去做。但是如果有一群人先把小团体的架子搭起来,这样压力也会分担到所有人头上,小团体能搭起来,有饭圈姐姐指导操作,有有热情的 au 能贡献力量,可能最终真的能做出点事情

    当然如果建起来了,也会有些问题。比如我们都是没经验的人,怎么知道哪些操作真的有用呢?但是我相信这些都有办法解决

    有什么好的建议吗?

    opened by Shimada666 0
  • refactor: 给部分代码添加注释

    refactor: 给部分代码添加注释

    根据 #35 的editorconfig文件更改了大部分代码缩进 给 ArticleCompareUtil 添加注释,把 main 的测试移到 test 目录下做单元测试 把工具类的 main 测试移动到 test 目录下 给 ICheckService 和 ICheckServiceImpl 添加注释,并调整了部分写法 将部分类或者函数的注释改成javadoc格式的注释 给 LeaderBoard 添加了注释并调整了部分写法

    opened by michaelfyc 0
  • feat: 初版随机小作文

    feat: 初版随机小作文

    最近太忙啦 鸽了很久 不好意思

    初版功能,文档还没加,先提个 pr

    一个想法:单独靠算法排除掉干扰选项是很难做完善的,一般来说,au们看到小作文才会去查重。如果在查重时,将匹配的小作文查重次数 +1,之后小作文就从如 查重次数 > 10 的小作文里随机挑选,这样可以保证小作文是比较准确的,而不是骂战留言之类的,性能也是非常快的

    延伸:统计了查重次数后,枝江作文展也可以以此方法筛选作文,现有作文展有一些干扰,比如晚晚请假等不是作文的也被展示出来。强烈建议增加查重次数统计,帮助筛选优秀小作文

    opened by Shimada666 6
Java - Backend for Human Resource Management System

HRMS (Human Resource Management System) Main Directory PostgreSQL (Heroku)Live API Java(1.8) - Spring Boot based. Dependencies: Spring Boot DevTools S

Karcan Ozbal 61 Dec 26, 2022
Repository with Backend code for InnoTutor project. It is written on Java/Spring.

Backend ᅠ ᅠ Developers: Daniil Livitn, Roman Soldatov Contents Requirements API Database Google credentials Hosting and CI How to install locally Code

InnoTutor 20 Sep 17, 2022
Desafio Alura Challenge para backend. Criando uma API REST de controle de orçamento utilizando JAVA.

Desafio Alura Challenge para backend. Criando uma API REST de controle de orçamento utilizando JAVA.

Allan Cordeiro 1 Jun 16, 2022
Java implementation of Beacon Chain for Ethereum 2.0, and its Backend API and full Infrastructure.

hailong Implementation of the Ethereum 2.0 Beacon Chain. Based on the (evolving) specification. Build Instructions Install Prerequisites 1) Java 11 Ub

我是高天才! 14 Feb 6, 2022
Spring MVC backend written in Java for my wiki/blog

blog-api Spring MVC backend written in Java for my wiki/blog. Why Spring? Spring MVC and other parts of the Spring framework are still immensely popul

null 0 Mar 16, 2022
İnnova-Patika Java Spring Bootcamp - > Bitirme Projesi -> Backend

İnnova-Patika Java Spring Bootcamp - > Bitirme Projesi -> Backend

Murat Ali KIŞTAN 6 May 1, 2022
Java library that integrates to SAP Mobile Services Backend APIs

Java integration for SAP Mobile Services is a client library to integrate your application with the backend-facing APIs of SAP Mobile Services. As this project only started, it at the moment only provides the integration to the Notification Backend services, which allows you to send push notifications to your mobile devices. Other integrated APIs may be added to this library in the future.

SAP 7 Dec 15, 2022
Bersama Java Spring membangun negeri (Backend)

Hal - hal yang ada pada Java Spring Application Context Menggunakan IoC (Inversion of Control) / Container. Singleton : Object yang hanya dibuat 1 kal

Pradana 2 Jul 11, 2022
CASGEM MİLTEK Java Backend Yazılımcı Geliştirme Programı kapsamında geliştirdiğim RentACar projesi

Rent A Car Project Rent A Car Backend Project is a demo built with Spring Boot. Features Each brand can have a maximum of 5 vehicles, The car can be d

Ferhat ÇELİK 19 Sep 14, 2022
Application for creating blog posts, developed with Java using Spring Framework for backend and Angular along with PrimeNG Library for frontend development.

Application for creating blog posts, developed with Java using Spring Framework for backend and Angular along with PrimeNG Library for frontend development.

Áureo Carmelino 10 Nov 27, 2022