Giter VIP home page Giter VIP logo

tada-hdt-entity-experiment's Introduction

tada-hdt-entity-experiment

Build Status codecov DOI

Run experiments using tada-hdt-entity library

Datasets

  • T2Dv2

T2Dv2

  • classes_with_col_GS.csv: this file contains the file names, the column id of the subject columns, and their classes This is update version from the classes_GS.csv provided by the T2Dv2. We changed the concept column with the subject column id and we fixed some mislabels.
  • classes_with_col_GS_2016_04: a subset of classes_with_col_GS.csv, which contains the entity columns which exists in dbpedia's hdt of 04-2016.
  • properties_entity.csv: contains the properties with entities as the objects
  • properties_2016_04.csv: a subset of properties_entity.csv which only contains the properties which exists in dbpedia's hdt of 04-2016.
  • tranformer.py: a python script to generate properties_entity.csv from the annotation files of T2Dv2.

To generate properties files

  1. To generate properties_entity.csv. python tranformer.py "T2Dv2_dir/property" classes_with_col_GS_2016_04.csv properties_entity.csv You can replace T2Dv2_dir with the directory containing the T2Dv2 folder. You can download it from here.
  2. To generate properties_2016_04.csv, you need to change the main.cpp and include the following source code:
#include<iostream>
#include<string>
#include<stdio.h>
#include "t2dv2.h"
#include <tabular_parser/parser.h>
using namespace std;

int main(int argc, char* argv[]) {
    T2Dv2* t2d = new T2Dv2(hdt_file, log_file, classes_file, files_dir);
    t2d->set_lang_tag("@en");
    t2d->set_title_case(false);
    t2d->generate_properties_file("datasets/t2dv2/properties_entity.csv", "datasets/t2dv2/properties_2016_04.csv");
    return 0;
}

and then compile and run make;bin/tadaeexperiment

tada-hdt-entity-experiment's People

Contributors

ahmad88me avatar

Stargazers

 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.