202110021221WA_The seq2seq text file can be read into entropynetwork

The seq2seq text file is at:
http://www.entropynetwork.com//pub/s2s//CVM_00001_0.json


this can be read into entropynetwork:

http://www.entropynetwork.com/doc2/?jsonURL=%2Fpub%2Fs2s%2F%2FCVM_00001_0.json&xres=2048&yres=2048&imageURL=
(the result is a single node, in the top left corner, hard to find actually)


click the 

select the node, move it to the right and down, this will be the start of a CVM chain.

Click the button [nodeFromText[0]]

This will create nodes for each sentence.

open the console.

select the first sentence node.

The node number will be listed (it is probably 0).

in the the console, type (if it is 0):

connectWordDataTo(0, 0); // if it is not 0 type the number, example (5, 5)

This will split the words in the sentence into data fields. 

then type this command:

makeNodesfromData20210722WA(0); // assuming the node is 0 again, otherwise type the number.

This will make nodes for each word.

You can now link them and arrange the vectors.



function parseWordsToNodes(id)
	{
	connectWordDataTo(id, id); 
	makeNodesfromData20210722WA(id);
	}


function connectFloatDataTo(dataId, inid)
{
var success = true;
//var Data = nodes[dataId].text.toLowerCase().split('\n');
var Data = nodes[dataId].text.split(' ');
var cleanedData =[];
Data.forEach( function(item) {
var theData =  item.replace(/\s/g, ' ')     ;
var theData =  item.replace(/[^\d.-]/g, '')     ;
console.log(parseFloat( theData) );
if ( Number.isNaN(theData)  ) {console.log("*FAILED*"+theData+ "is not a number"); success = false;}
cleanedData.push( parseFloat( theData) );
});
nodes[inid].data = cleanedData;
//nodes[inid].dataFiltered = cleanedData.filter(item => item);

if ( ! success ) {console.log("*FAILED*");}
return success;
}


function sumDataArray(id)
	{
	return nodes[id].dataFiltered.reduce(function(acc, val) { return acc + val; }, 0);
	}



//connectFloatDataTo (18,18);
//sumDataArray(18);


8.42






