Giter VIP home page Giter VIP logo

chinesecorpuscreation_letterbasedlanguageclassification's Introduction

#purpose This repo contains the source code to build a Chinese turn-based dialogue corpus and produces the output in xml format. Course Work for Comp551 Applied Machine Learning at McGill University

#Dependency

The parser depends on jsoup-1.10.3.jar. The R code needs library ggplot2

Steps

Crawler

All the URLs related to economics or economy were crawled via python script using HTML and CSS selectors. Input: Primary_URL to be placed in self.crawl method Output: List of URLs that acts as an input to the parser

Parser

Set the filename in line 31 of parser/main.java to be the name of the url file. The name of the url file should starts with "url". Each line of that file should be a url.

Cleaner

Copy the output files of the parser to cleaner folder. Run parser/main.java to get the final corpus (final_corpus.txt) and the statistical data (final_stats.txt and pp_stats.txt). Meanwhile, you can get remove_map.txt which records how many utterances are filtered because of a specific keywords and delete.log which records each deleted utterance are deleted because of which keyword.

Statistical Graph Generator

chmod +x stats.R && ./stats.R

chinesecorpuscreation_letterbasedlanguageclassification's People

Contributors

akashzcoder avatar alanan46 avatar milesqli 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.