Code Monkey home page Code Monkey logo

fun-projects's Introduction

fun-projects

This repository includes my startup projects about Chinese Slang words

1. Project 1 - Basic Search

I provide an easy ETL process to extract the slang words from our existing csv forms to sqlite. And Users can feel free to play around with our data. The main purpose is to give anyone who is interested in Chinese a better way to learn Chinese slang words

1.1 Prerequisites

  • Python 3.x
  • Pandas library
  • SQLite3 library

1.2 Setup

  1. Clone the repository or download the project files to your local machine.

  2. Install the required dependencies by running the following command in your terminal or command prompt:

    #pip install SQLite3 #if you have not install SQLite3
    #pip install Pandas #if you have not install pandas
    

1.2 Run project

To load csv to sqllite and start API server, run the following command:

python Slang_seach.py
#python3 Slang_seach.py

Specifically,

Data Loading

The transaction data is loaded into the SQLite database using the Extract_slang.py script:

python Extract_slang.py

This script reads the google_form_slangs.csv and other 3 files, concatenate them into one dataframes (allSlang_df), and uploads them to the SQLite database (ChineseSlangWords.db).

Search

To start the search engine, run the following command:

python Slang_search.py

2. Project 2 - TextRank

This is a short program built upon textrank4zh package and I am still developing new features for analyzing texts.

2.1 Run project

python textRank.py
#python3 textRank.py

fun-projects's People

Contributors

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