Coder Social home page Coder Social logo

cwi's Introduction

Cross-lingual Complex Word Identification

Models for cross-lingual complex word identification.

Instructions

You are advised to use python environments. For reporting results you should only use the docker image that can be built as follows:

  • build it by running docker build -t cwi - < Dockerfile
  • get an interactive terminal on the image with docker run -i -t cwi bash
  • run commands as you normally would (remember this is a very minimal linux installation)

If you want to run the image with a new version of the code, add the option --no-cache to the build.

Project Organization

├── LICENSE
├── Makefile           <- Makefile with commands like `make data` or `make train` (we won't use use for now)
├── README.md          <- The top-level README for developers using this project.
├── data
│   ├── external       <- Data from third party sources (e.g., dictionaries, word lists, etc.).
│   ├── interim        <- Intermediate data that has been transformed (e.g., data after processing).
│   ├── processed      <- The final, canonical data sets for modeling (the final datasets that would not suffer further processing).
│   └── raw            <- The original, immutable data dump.
│
├── docs               <- A default Sphinx project; see sphinx-doc.org for details (don't worry about this for now)
│
├── models             <- Trained and serialized models, model predictions, or model summaries
│                          (if the trained models are going to be stored, this is the place to save them)
│
├── notebooks          <- Jupyter notebooks. Naming convention is a number (for ordering),
│                         the creator's initials, and a short `-` delimited description, e.g.
│                         `1.0-jqp-initial-data-exploration`.
│
├── requirements.txt   <- The requirements file for reproducing the analysis environment, e.g.
│                         generated with `pip freeze > requirements.txt` (don't worry about this for now)
│
├── setup.py           <- makes project pip installable (pip install -e .) so src can be imported
├── src                <- Source code for use in this project.
│   ├── __init__.py    <- Makes src a Python module
│   │
│   ├── data           <- Scripts to download, generate or preprocess data
│   │
│   ├── features       <- Scripts to turn raw data into features for modeling
│   │
│   ├── models         <- Scripts to train models and then use trained models to make predictions
│   │
│   └── visualization  <- Scripts to create exploratory and results oriented visualizations
│
└── tox.ini            <- tox file with settings for running tox; see tox.testrun.org

Cross Lingual Results Testing

The following results need to be tested for the crosslingual model.

French Test Data


Below are the command line options for testing for various combinations of Language with French as test data:

Language Choice Combination Command Line Command
English Only python src/models/run_crosslingual.py -s E
Spanish Only python src/models/run_crosslingual.py -s S
German Only python src/models/run_crosslingual.py -s G
English and Spanish python src/models/run_crosslingual.py -s ES
English and German python src/models/run_crosslingual.py -s EG
Spanish and German python src/models/run_crosslingual.py -s SG
English, Spanish and German python src/models/run_crosslingual.py -s ESG

English Test Data


Language Choice Combination Command Line Command
Spanish Only python src/models/run_crosslingual.py -s S -l english
German Only python src/models/run_crosslingual.py -s G -l english
Spanish and German python src/models/run_crosslingual.py -s SG -l english

Spanish Test Data


Language Choice Combination Command Line Command
English Only python src/models/run_crosslingual.py -s E -l spanish
German Only python src/models/run_crosslingual.py -s G -l spanish
English and German python src/models/run_crosslingual.py -s EG -l spanish

German Test Data


Language Choice Combination Command Line Command
English Only python src/models/run_crosslingual.py -s E -l german
Spanish Only python src/models/run_crosslingual.py -s S -l german
English and Spanish python src/models/run_crosslingual.py -s ES -l german

Project based on the cookiecutter data science project template. #cookiecutterdatascience

cwi's People

Contributors

alisonms avatar andreasvlachos avatar aneeqr avatar elisabethfritzsch avatar feralvam avatar pierrefinnimore avatar tomdakin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cwi's Issues

issue with encoding in the fille greek_and latin_affixes.txt

Hi all,

Tried to run the pipeline, and got a unicode encoding error:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 1357: invalid continuation byte

Looking into the file in the subject line, the following lines seem to bothering the execution:

áŒ
Ï
Ï
ε
Î
Ï
Ï
Î
ι

If we don't need these lines for our experiments, maybe we can just remove them?

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.