ZwenAusZwota / pyector

Automatically exported from code.google.com/p/pyector
0 stars 0 forks source link

Make possible to save ConceptNetwork States separately #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For the moment, one can save the ConceptNetwork *and all its states* using
ConceptNetwork.dump().
It is fine when there are few states.
But what happens when many states are present in the ConceptNetwork (for
example for ECTOR with one state per user)?

One should allow to save one state separately (simply by adding a dump() to
Sate), and to remove states from the ConceptNetwork.

Warning: when saving in the same file, the reference from NodeStates to
Nodes are saved too.

Original issue reported on code.google.com by francois.parmentier@gmail.com on 21 Oct 2008 at 5:00

GoogleCodeExporter commented 8 years ago
It's OK, I just checked: NodeStates are only in dictionary, with symbol as a 
key.
Maybe later it will be (symbol, token), but there are no references.

One might be able to save States independently from ConceptNetworks. :)

Also, one could create ConceptNetwork.keepOnlyState(id), to remove all states 
except one.

Original comment by francois.parmentier@gmail.com on 21 Oct 2008 at 5:44

GoogleCodeExporter commented 8 years ago
r32 implements this enhancement: no more state is dumped with the nodes and 
links of
a ConceptNetwork.

One can dump separately every state.

Original comment by francois.parmentier@gmail.com on 21 Oct 2008 at 8:39