There is a list with data
Each time something in the list changes
The autoput boolean should ‘very shortly’ change to true
(in other words, when a change is recognized change → true, hereafter change to false again).
Something like the python script does a is shown in the forum shown below, with the modification that it works with changes in text. (not only with changes in numbers).
@bbalbastre interpreted your question as per-row of you list of texts… is that correct?
Or you want a global true/false testing it as a whole single block of text?
Also explain your context, what you ask is a sort of bool “impulse” going through your algorithm (correct?)… while it is not impossible or hard to achieve so (with some simple script), you might want to discuss why you are needing this.
However, imagine that the input list is changed (for whatever reason), . e.g. 1 word is replaced by another word.
In normal GH scripts, what would happen is that again ‘All’ words go into the cluster and are translated.
Note: in this example the list of inputs is very short and the ‘translation/action’ is very simple, but imagine that the list is very long and the translation/data maniputaion is more complex, it can become time consuming very fast.
1- we treat each row independently, then. Correct?
2- Your translate module is a plugin? It would be simpler to treat this all inside a script (where it can remember old state) … maybe with nodeincode …
3- if you have a list of 1000 strings, and you insert a string at the start of the list, the script is going to recaulculate everything anyway… because every element is changed (while in reality it just moved)… maybe storing every possible EN>DE pair is simpler…
No its a cluster with alot of geometrical manipulations.
The input data is just plain text (not very heavy), the only thing is, is that the cluster is quite slow… the more input the slower it becomes. So I am trying to reduce the input to the minimum possible…
Update (re-internalize) the dictionary every time a new word come out.
This is needed to avoid recursive data stream.
We can automatize this, but do some tests first.
Thanks again, while playing around with it, I ran into one thing.
If an items is only slightly changed (e.g. → cat → cats) the original translation of ‘cat’ is still showing.
This while it should be replaced by the catS translation.
Thaks again very much, If you have any idea just let me know!
It is meant to work this way.
The right c# component only receive new words to store in the dictionary.
The “this old translation is wrong, replace it with this new translation” is a concept you never mentioned.
“cats” and “cat” are two different words, with two different translations.
The dictionary store both translations correctly.
If you want to destroy and build a new dictionary use the reset button.
You are right, I didn’t mention it earlier. (it would be nice if it works but if its a lot of work its fine).
Would it be possible to automate the update (re-internilize) the dictionary every time a new word comes out as mentioned in your earlier reply?
This is the most important for me at this time
I don’t understand how you imagined it to work.
Please explain how you imagine the “remove/replace that word from the dictionary”.
As before, cats and cat might be words you want to keep. Both.
Only the input items which are present in the input, have to be presented in the 'output '. (in other words: input and outputs should always contain the same ‘items’)
See below a few consequtive inputs, and what the actions & results should be: