Giter Site home page Giter Site logo

minhcp / cikmcup17 Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 3.0 31.1 MB

CIKM AnalytiCup 2017 - Lazada Product Title Quality Challenge: A Bag of Features for Short Text Classification.

Python 19.86% Makefile 0.34% C++ 69.24% C 4.77% Shell 4.89% HTML 0.67% CSS 0.23%

cikmcup17's Introduction

Product Title Classification

This repository contains source code for our solution at the CIKM AnalytiCup 2017 - Lazada Product Title Quality Challenge.

Problem

The task is to determine the quality of product titles created by public users on the e-commerce platform Lazada. We focus on two main objectives, namely Clarity and Conciseness which are described as follows:

  • Clarity - The ease of readability and delivery of key product attributes such as color, size, model, etc. Product titles with high clarity scores should be easy to understand and interpret quickly.

  • Conciseness - The optimal point of conveyed information with respect to product title length, i.e., the amount of redundant content in the product title. Product titles that do not contain all necessary information also violate this quality.

The problem is framed as two separate regression tasks which try to predict a score within [0,1], each for clarity and conciseness. The labels provided, however, are binary (0 or 1).

File description

Input data files

The following data files are given by Lazada in the competition (https://competitions.codalab.org/competitions/1665):

./data/train/data_train.csv
./data/train/clarity_train.labels
./data/train/conciseness_train.labels
./data/test1/data_valid.csv
./data/test2/data_test.csv

ConceptNet Numberbatch pre-trained word embeddings. Need to download here:

./data/numberbatch-en.txt

./prepare_data.sh

The script will preprocess the input data and output into imtemidiate files. The following files will be generated by the script:

./data/train/data_train_preprocessed.csv
./data/test1/data_valid_preprocessed.csv
./data/test2/data_test_preprocessed.csv
./data/w2v.txt # Word2Vec embedding trained from the title and description corpus.
./brown-cluster-master/all_titles_lowercase.txt # Title corpus used as input for [Brown clustering](https://github.com/percyliang/brown-cluster).
./brown-cluster-master/all_titles_lowercase-c*-p1.out/*.* # Brown clustering results

./train_predict.sh

The scrip will extract features to create the training data files, and make predictions for the test samples. The following files will be generated:

./to_submit/*.* # Preditions for test samples.
./data/predictions/*.* # Intermidiate files that contain k-fold predictions of training data
./data/extracted_features/*.* # The data files contain features that are extracted from training and test samples.

Usage

To train and predict using the existing preprocessed files:

train_predict.sh

To re-create the all the preprocessed data files:

prepare_data.sh
train_predict.sh

cikmcup17's People

Contributors

minhcp avatar

Stargazers

 avatar Muhammad Ahmed avatar Saif Ul Islam avatar Jiang Huajun avatar Steve Tran avatar yuanke avatar Ramsey avatar Yi Tay avatar  avatar  avatar Lucas Vinh Tran avatar  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.