Re: [opencog-dev] About Stimulating atoms and NLP

2016-10-13 Thread Vishnu Priya


Thanks Misgana for the info.  I followed the steps as below.  But cof-af is 
() empty. What am i missing here?
>
>
opencog> loadmodule /opt/opencog/build/opencog/attention/libattention.so
done
opencog> start-ecan
Started the following agents:
opencog::AFImportanceDiffusionAgent
opencog::WAImportanceDiffusionAgent
opencog::AFRentCollectionAgent
opencog::WARentCollectionAgent
opencog> scm
Entering scheme shell; use ^D or a single . on a line by itself to exit.
guile> (nlp-start-stimulation 30)
guile> (use-modules (opencog) (opencog nlp) (opencog nlp chatbot) (opencog 
nlp relex2logic))
guile> (nlp-parse "the sky is beautiful")
((SentenceNode "sentence@b8400d67-12b2-46e5-826b-dc54bdad9ed1")
)
guile> (nlp-parse "the sky is blue")
((SentenceNode "sentence@cbbd5372-5a43-4b81-a823-c490722ef81d")
)
guile> (nlp-parse "The clouds are in sky")
((SentenceNode "sentence@00bc0122-85b5-4d01-becc-6abf0d92b6f9")
)
guile> (cog-af)
()


-Vishnu

-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to opencog+unsubscr...@googlegroups.com.
To post to this group, send email to opencog@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/685240b8-3b9a-4289-a011-2cc7466acfbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] About Stimulating atoms and NLP

2016-10-13 Thread Misgana Bayetta
On Thu, Oct 13, 2016 at 6:08 PM, Vishnu Priya 
wrote:

> Hello,
>
> My idea is to give, streams of text ( i don't know what it is about) -- >
> NLP pipeline --> stimulate atoms --> retrieve the atoms with high STI and
> its related atoms and check whether any useful/important  info is obtained.
> Regarding this, i would like to clarify and conform few things.
>
> @Misgana:
>
>
>1. Can i stimulate atoms every time they have been parsed by the NLP
>pipeline ?  Something like this exists before?.  I just tried (nlp-parse
>"The sky is beautiful") then (cog-stimulate). But i did not know the exact
>syntax for stimulating. Is this the way it works? What if, when i load a
>scheme file with atoms in AS and want to stimulate? How to ensure that the
>atoms  with high STI are remembered/forgotten?.
>
> Currently, Here are the steps to run the ECAN system with the nlp pipeline
- Go to opencog shell and type loadmodule libattention.so  (use full
path here)
- Type start-ecan
-  Goto guile shell by typing scm
-  type (nlp-start-stimulation STIMULUS_AMOUNT)for a moderately
sized atomspace I am using STIMULUS_AMOUNT to have a value of 100. What the
forgetting agent currently does is removing atoms but we never really
worked with it since our main focus was on the spreading, hebbian and rent
collection agent which are responsible in determing the content of the
attentional focus.

>
>1. Feeding the atoms in AS should be in the form of relex or
>relex2logic  for boosting?
>
> There is no constraint on this. You can feed any way you want as long as
you are stimulating the particular atoms of interest with the
(cog-stimulate atom stimulus) function from scheme or some with an agent
that runs with in the cogserver.

>
>1.  It is not possible to store atoms with high attention values in
>DB. There is no code for doing this at this time?.  I can also never delete
>atoms once that are put into DB.?
>
> Linas will answer this better.

>
>1.  I need to write a code, so that i can retrieve top ranking atoms
>with high STI?
>
> Atoms in the attentional focus could be feteched with the (cog-af)
function in scheme. It returns all atoms with STI values above the
attentional focus boundary STI value. But if you are looking for ranking
atoms based on their STI including atoms outside of the attentional focus,
you will need to write a C++ code which calls this function
https://github.com/opencog/atomspace/blob/master/opencog/atomspace/AtomSpace.h#L574
with lower and upper boundary  STI values provided.


After these steps, everytime you parse a sentence (eg. (nlp-parse "Hello
World!") ) WordNodes and WordInstanceNodes will get stmulated with the
specified amount.

You may view whats in the attentional focus and and and the attentional
focus boundary with (cog-af) and (cog-af-boundary) methods respectively.
There are few AV related scheme functions listed here
.

> @Linas:
>
>  I can give only the sentences which are grammatically correct into NLP
> Pipeline?.  So when i give  incomplete sentences say human chats  like this
> "MadMonkey's Jim Cramer next Wk investment htt brtt", it will be
> parsed with low confidence value. Apart from this, will it have impact on
> providing boost to atoms?
>
> Thanks and regards,
> Vishnu
>
> --
> You received this message because you are subscribed to the Google Groups
> "opencog" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to opencog+unsubscr...@googlegroups.com.
> To post to this group, send email to opencog@googlegroups.com.
> Visit this group at https://groups.google.com/group/opencog.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/opencog/6b504857-e728-4d01-a710-e0e94a521731%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Belachew Misgana Bayetta
'For everyone who asks receives, and the one who seeks finds, and to the
one who knocks it will be opened ' --Jesus
'The future belongs to those who believe in the beauty of their dreams'
--Eleanor Rusvelt

-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to opencog+unsubscr...@googlegroups.com.
To post to this group, send email to opencog@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/CAOgrVvWXzgXSDTfzvv6H9cwxJ%3D-KuzgowkO2YpC3f05AkE6b5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] About Attention Values and Truth Values

2016-10-13 Thread Vishnu Priya

Hey Roman,

Thanks, that helped a lot to get more insight. :-)  I shall ask Misgana 
about stimulating atoms. 

Cheers,
Vishnu




-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to opencog+unsubscr...@googlegroups.com.
To post to this group, send email to opencog@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/863fb250-ed1d-411f-a379-9ce35826a972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.