Common settings

In [1]:
import os, sys, time
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
from IPython.display import display
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path: sys.path.append(module_path)
from src.utl.utl import UTC
from src.utl.read_files import check_dir
date = '2018-08-13'
verbose='none'
from src.grammar_learner.agi_2018_pictures import gimme_pictures
print(UTC())
2018-08-13 18:28:16 UTC

POC-Turtle, MST fixed manually

In [2]:
input_dir = module_path + '/data/POC-Turtle/MST_fixed_manually/'
batch_dir = module_path + '/output/AGI-2018-Pictures-'+str(UTC())[:10]

Connectors-DRK-Connectors

In [3]:
prj_dir = batch_dir + '/POC-Turtle/MST_fixed_manually/connectors-DRK-connectors/'
context = 1
grammar_rules = 1
gimme_pictures(input_dir, prj_dir, context, grammar_rules, verbose)
Cluster words in vector space, axes 1 and 2
Out[3]:
'Link Grammar file saved to: /home/obaskov/ull4/output/AGI-2018-Pictures-2018-08-13/POC-Turtle/MST_fixed_manually/connectors-DRK-connectors/poc-turtle_6C_2018-08-13_0008.4.0.dict'
In [4]:
#STOP

Disjuncts-DRK-Disjuncts

In [5]:
prj_dir = batch_dir + '/POC-Turtle/MST_fixed_manually/disjuncts-DRK-disjuncts/'
context = 2
grammar_rules = 2
gimme_pictures(input_dir, prj_dir, context, grammar_rules, verbose)
Cluster words in vector space, axes 1 and 3
Out[5]:
'Link Grammar file saved to: /home/obaskov/ull4/output/AGI-2018-Pictures-2018-08-13/POC-Turtle/MST_fixed_manually/disjuncts-DRK-disjuncts/poc-turtle_6C_2018-08-13_0008.4.0.dict'

POC-English-NoAmb, MST fixed manually

In [6]:
input_dir = module_path + '/data/POC-English-NoAmb/MST_fixed_manually/'

Connectors-DRK-Connectors

In [7]:
prj_dir = batch_dir + '/POC_English_NoAmb/MST_fixed_manually/connectors-DRK-connectors/'
context = 1
grammar_rules = 1
gimme_pictures(input_dir, prj_dir, context, grammar_rules, verbose)
Cluster words in vector space, axes 1 and 2
Out[7]:
'Link Grammar file saved to: /home/obaskov/ull4/output/AGI-2018-Pictures-2018-08-13/POC_English_NoAmb/MST_fixed_manually/connectors-DRK-connectors/poc-english_10C_2018-08-13_0008.4.0.dict'

Disjuncts-DRK-Disjuncts

In [8]:
prj_dir = batch_dir + '/POC_English_NoAmb/MST_fixed_manually/disjuncts-DRK-disjuncts/'
context = 2
grammar_rules = 2
gimme_pictures(input_dir, prj_dir, context, grammar_rules, verbose)
Cluster words in vector space, axes 1 and 4
Out[8]:
'Link Grammar file saved to: /home/obaskov/ull4/output/AGI-2018-Pictures-2018-08-13/POC_English_NoAmb/MST_fixed_manually/disjuncts-DRK-disjuncts/poc-english_13C_2018-08-13_0008.4.0.dict'