Skip to content

maitreyeeT/Informativeness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Informativeness

Here we present the implementation of two metrics: syntactic cohesion and informativeness for our recent project.

Folder description

  1. Code has the necessary code for computing the metrics. The code sub-directory consists of a python file which parses, cleans and transforms the data.

  2. Data folder has three files: cleaned_inst1 used for calculations, exploded_id_nullvals2 raw dataset, parsed_tree_data has depedency graphs for each instruction segment.

  3. data_metrics consists of the final dataset with dependency graphs and cohesion and informativeness scores.

***Later we will add the analysis part.

The libraries used are as follows,

install libraries using pip and use virtual environment to keep things clean:

pip -r requirements.txt

The format of the data is tab delimited csv files with index (below trans_info) and instructions (instruction_segment) where, each of it is expanded to consequitive rows with segments as indicated in the example below.

trans_info instruction_segment

0 mok move right

0 move four feet

0 turn left

0 move seven feet

After this we apply dependency parsing using SPACY.

Then we calculate cohesion and informativeness equations.

Usage

As a loss function for generating informative natural language and to analyse syntactically cohesive instances of natural language.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages