Giter Site home page Giter Site logo

hamedbabaei / pan2019_bots_gender_profiling Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 155 KB

PAN 2019, Bots and Gender Profiling Task

Python 100.00%
author-profiling ensemble-learning scikit-learn tf-idf ngram nltk machine-learning natural-language-processing doc2vec

pan2019_bots_gender_profiling's Introduction

Author Profiling: Bot and Gender Prediction using a Multi-Aspect Ensemble Approach

This project contains our paper's codes in python, used to indetifying bots and humans and in case of human used to identifying gender in PAN 2019 competition.

Usage

please follow the instructions to profiling authors.

1. running prepare_dataset.py

Parameters:

usage: prepare_dataset.py [-h] [-i INPUT] [-o OUTPUT]

optional arguments:
  -i INPUT      path to input dataset
  -o OUTPUT     path to output directory(default = 'prepared_dataset')

running the script usage:

python prepare_dataset.py -i path_to_dataset_root_dir

2. running training_ngram.py

Parameters:

usage: training_ngram.py [-h] [-i INPUT] [-o OUTPUT] [-ft FT] [-n N]

optional arguments:
  -i INPUT            path to prepared dataset
  -o OUTPUT           path to output directory(default='pre-trained_models')
  -ft FT              frequency threshold (default=5)
  -n N                n-gram order (default=4)

running the script usage:

python training_ngram.py -i path_to_prepared_dataset

3. running training_tfidf.py

Parameters:

usage: training_tfidf.py [-h] [-i INPUT] [-o OUTPUT] [-ft FT]

optional arguments:
  -i INPUT      path to prepared dataset
  -o OUTPUT     path to output directory(default='pre-trained_models')
  -ft FT        frequency threshold (default=5)

running the script usage:

python training_tfidf.py -i path_to_prepared_dataset

4. running training_doc2vec.py

Parameters:

usage: training_doc2vec.py [-h] [-i INPUT] [-o OUTPUT]

optional arguments:
  -i INPUT      path to prepared dataset
  -o OUTPUT     path to output directory(default='pre-trained_models')

running the script usage:

python training_doc2vec.py -i path_to_prepared_dataset

5. running bot_gender_profiling.py

Parameters:

usage: bot_gender_profiling.py [-h] [-i INPUT] [-o OUTPUT] [-t TRAIN_DIR] [-m MODELS] [-n N]

optional arguments:
  -i INPUT        path to dataset directory
  -o OUTPUT       path to output directory
  -t TRAIN_DIR    path to train dataset directory
  -m MODELS       path to models directory
  -n N            n-gram order (default=4)

running the script usage:

python bot_gender_profiling.py -i path_to_dataset_dir -o paht_to_output_dir -t path_to_train_dataset_dir -m paht_to_modles_dir

Citation

Please cite us as:

HB Giglou, M Rahgouy, T Rahgouy, MK Sheykhlan, E Mohammadzadeh. Author Profiling: Bot and Gender Prediction using a Multi-Aspect Ensemble Approach - Notebook for PAN at CLEF 2019. In CLEF 2019 Evaluation Labs and Workshop–Working Notes Papers. CEUR-WS. org.

pan2019_bots_gender_profiling's People

Contributors

hamedbabaei avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pan2019_bots_gender_profiling's Issues

check_xml

for xml_file in truth.split ('\n:'):

for xml_file in truth.split ('\n:'):
File "", line 1
for xml_file in truth.split ('\n:'):
^
SyntaxError: unexpected EOF while parsing

Please along with this explain me the code
as im trying to append multiple xml files in one csv

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.