Code Monkey home page Code Monkey logo

english-word-platform's Introduction

基于知识图谱的可视化英语词典

各系统版本

  • java 11
  • Neo4j v4.4.18
  • Py2neo==4.3.0
  • Python3.7+
  • Sveltekit

1. 构建知识图谱

Step1: 运行backend/utility/extract_info.py, 从WordNet中抽取实体和关系, 得到三个文件:

  • backend/data/relationships.csv
  • backend/data/synsets.csv
  • backend/data/words.csv

Step2: 将上面三个文件移到neo4j/import中, 接着运行下面指令:

cd backend/neo4j-v4/bin
./neo4j-admin import --nodes ../import/words.csv --nodes ../import/synsets.csv --relationships ../import/relationships.csv --skip-duplicate-nodes

Step3: 得到下面截图的结果,则表示数据成功的导入到neo4j中

Step4: 运行下面指令启动neo4j

cd backend/neo4j-v4/bin
./neo4j start

Step5: 打开浏览器,访问http://localhost:7474,初始Username和Password都是neo4j,成功登录后可以看到构建好的知识图谱

2. 构建可视化在线词典

Step1: 本项目使用python去连接已经构建好的知识图谱,第一步需要先启动neo4j

cd backend/neo4j-v4/bin
./neo4j start

Step2: 挂起neo4j后,使用python的py2neo去连接知识图谱并且启动flask后端程序

cd backend
python app.py

Step3: 启动前端程序

cd frontend
npm run dev

english-word-platform's People

Contributors

ddy-ddy avatar

Stargazers

 avatar

Watchers

 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.