Skip to content

iral-lab/GLS

Folders and files

NameName
Last commit message
Last commit date
Jul 25, 2019
Jul 25, 2019
Jun 17, 2019
Sep 11, 2019
Jul 30, 2019
Jul 25, 2019
Sep 11, 2019
Sep 11, 2019
Jul 25, 2019
Feb 12, 2019
Jul 25, 2019
Jul 25, 2019
Jul 25, 2019
Jul 25, 2019
Jul 25, 2019
May 30, 2019

Repository files navigation

Grounded language Learning System

General system framework for learning word-as-classifer groundings

Prerequisites

  • python 2.7
  • pandas
  • genism

Running the tests

Visual features should be stored in a folder one diectory above GLS

Preprocessing language input

python2 preprocess_descriptions.py <language name> <language> <"stop", "lemm", or "stemm">

Learning

python2 cLL-ML.py --resDir <folder for result output> --cat <category of learning: rgb, shape, object, all> --pre <formated language conf file> --cutoff <threshold for negative example selection> --seed <seed for random selection> --visfeat <location of visual feature folder hierarchy>  --listof <list of instances or images conf file> --negexmpl <optional: import negative examples previously computed to save time> 

Testing / Validation

python2 macro-pos5DescrNegDocVecdistractorTest.py <result folder>/NoOfDataPoints/ <category: rgb, shape, object, all> <category: rgb, shape, object, all> <formated language conf file>