Git Product home page Git Product logo

ir2017-prj2's Introduction

IRIE 2017 Project 2

For the course "Information Retrieval and Extraction", Fall semester, 2017. Writen by Hao-Yung Chan (Student ID: R04521618)

Requirements

Python 3.6 (3.6.3 is used in development)

Installation

  $ git clone https://github.com/katrina376/ir2017-prj2.git
  $ cd ir2017-prj2

Run

  $ python3 feature-base.py <PATH_TO_TRAIN_DATA> <PATH_TO_TEST_DATA> <PATH_TO_SEG_CORPUS> <WIDTH_OF_NOUN_WINDOW> <WIDTH_OF_VERB_WINDOW>

Be aware that <PATH_TO_SEG_CORPUS> should be the segmented version of the corpus.

<WIDTH_OF_NOUN_WINDOW> and <WIDTH_OF_VERB_WINDOW> are the parameter of the model. In the experiment, the odds in the interval of 3–13 are used.

Make sure that meta.py is in the same folder as feature-base.py. meta.py contains the glossary of POS tags to their simplified version. (Source:中研院平衡語料庫詞類標記集)

For example, train.txt, test.txt, Dream_of_the_Red_Chamber_seg.txt are all in the same folder as feature-base.py, set the width of noun window to 5 and the width of verb window to 7. Run:

  $ python3 feature-base.py train.txt test.txt Dream_of_the_Red_Chamber_seg.txt 5 7

ir2017-prj2's People

Contributors

katrina376 avatar

Watchers

James Cloos 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.