From 040ee58fecdc9c478004bc2e554e1ae126ec4602 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 15 Apr 2016 17:24:44 -0400 Subject: Added support for ImageNet and fixed bug with query interface Datafile change: nouns now know how many images are associated with them on ImageNet, and also have their WordNet synset ID saved so that you can query for images of that noun via the ImageNet API. So far, verbly only exposes the ImageNet API URL, and doesn't actually interact with it itself. This may be changed in the future. The query interface had a huge issue in which multiple instances of the same condition would overwrite each other. This has been fixed. --- generator/schema.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'generator/schema.sql') diff --git a/generator/schema.sql b/generator/schema.sql index f2445f0..9a39944 100644 --- a/generator/schema.sql +++ b/generator/schema.sql @@ -55,7 +55,9 @@ CREATE TABLE `nouns` ( `singular` VARCHAR(32) NOT NULL, `plural` VARCHAR(32), `proper` INTEGER(1) NOT NULL, - `complexity` INTEGER NOT NULL + `complexity` INTEGER NOT NULL, + `images` INTEGER NOT NULL, + `wnid` INTEGER NOT NULL ); DROP TABLE IF EXISTS `hypernymy`; -- cgit 1.4.1