[opencog-dev] How to interpret the inference results obtained from POSES?

2017-05-26 Thread Vishnu Priya
Hello All,

I tried the bank-sentiment analysis problem with POSES/MOSES. I also got 
the inference results as mentioned in the txt document.  But i don't 
understand it. 

The goal is to learn a model that predicts the column Q3, a value between 1 
and
11. 

 the command to make inference out of trained model,
$ poses inference -m bank.model -p Q3 -c bankcase.hcs

bankcase.hcs has some words and its count in the text.
great : 1
fee : 0
they : 0
best : 3
servic : 1

After running this command,
I thought each word will be classified and get a specific category (between 
1-11). But i got the result as only one centroid value 10.5.

What does this mean?  The data used for training  (bank.dat) has no such 
category 10.5 in the column Q3. 

 Then Does all the words in the .hcs file belong to same category?. since 
the output is 10.5, Which category the words belong to 10 or 11?  How 
should i interpret? 

Thanks in advance,
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/eb063f9b-83fd-4a1b-b0a6-27f4a96e9275%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  Tutorial for the Banking Sentiment Dataset
  --
June 2012

The Banking sentiment dataset is a compilation of customer satisfaction
survey data. It is a digested version of answers both to multiple-choice
questions, and free-form write-in comments. The goal is to correlate
the text of the comments with the answers to the multiple-choice
questions.


1. Installation of PM
-

See README.txt in the main directory.


2. Convert the survey spreadsheet into a .dat file
--

This step has already been done; the result of conversion can be found
in the file "bank.dat" in this directory.  The raw spreadsheet data and
conversion scripts can be found in the "example-bank-xls" directory.
Due to its large size, not all distributions of PM will include this
raw dataset.


3. Apply Poulin-MOSES on the banking data
-

PM can perform inference and provide other kinds of insights into the
data.  Before doing so, a model of the data must be learned. This first
step is the training step.

The goal is to learn a model that predicts Q3, a value between 1 and
11, representing customer satisfaction, given free-form comments left
by the customer.


3.1. Training
-

The following command will learn a model that predicts Q3:

$ poses moses -d bank.dat -m bank.model -p Q3 -e 1 -n 11 -F "-ainc -C15 
-j4" -M "-Z1 -j4"

The flags used are:

-d bank.dat indicates the file containing the training data

-m bank.model indicates the file where to write the model

-p Q3 is the target feature to predict

-e 1 indicates that MOSES will run 1 evaluations per classifier
  As a general rule, the larger this number, the more accurate the
  resulting model.  It would not be unusual to specify counts of
  half-a-million, resulting in run-times of hours or days.

-n 11 indicates the number of levels into which the target feature
  will be partitioned into.  Here, 11 levels correspond to ten
  binary classifiers, respectively, attempting to determine
  when the target variable Q3 exceeds each of ten thresholds:
  Q3>=2, Q3>=3, ..., Q3>=11  For this small dataset, this many
  levels is far too large, as will be seen in the accuracy
  command, later.

-F "-ainc -C15 -j4" is a set of options to be passed to
  feature-selection.
  -ainc indicates which feature selection algorithm to use;
here, the incremental mutual-information algo is used.
  -C15  specifies that fifteen of the most relevant, non-redundant
features should be selected during learning.
  -j4   specifies that 4 jobs (threads) should be used.

-M "-Z1 -j4" is a set of options to be passed to MOSES. 
  -Z1 specifies that the cross-over search feature be enabled.
  This can often (but not always) improve search performance
  or results.  The 'moses' command has many other options that
  can improve performance, depending on the dataset
  characteristics.  See the 'moses' man page for details.
 -j4 is the number of threads to use, here 4.

We can look at the model that was learned:

$ h

[opencog-dev] Atomspace- A neural-symbolic network?

2017-05-03 Thread Vishnu Priya
Hello All,
 
 i read that, Atomspace is a neural-symbolic network. How? 
or is it only a weighted hypergraph? Could any one please explain?

Thanks,
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/cf6e5d9c-6c9d-454a-b2b3-bfb179a05102%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Pros and cons

2017-05-02 Thread Vishnu Priya
Hi,


InheritenceLink Nageen human <strength, confidence>

strength - represents True/false
Confidence - expresses degree of strength, expresses  how certain/ 
uncertain the strength is.

InheritenceLink Nageen human <.9, .9>

InheritenceLink Nageen monster <.9, .1>
this indicates that there exists very small evidence that Nageen is monster.

Atoms are usually represented with attentional values. They are of 
following types.

STI: This value indicates how relevant this atom is to the currently 
running process/context
LTI: This value indicates how relevant this atom might be in future 
processes/context (Atoms with low LTI have no future use and get delete if 
the AS gets to big)
VLTI: This is a simple boolean that indicates that this atom should never 
be deleted. (Useful for system components that are written in Atomese)

-Cheers,
Vishnu


On Tuesday, 2 May 2017 16:41:19 UTC+2, Nageen Naeem wrote:
>
> Dear all, 
> Can anyone here explain in detail tge concept of truth value
> -stregnth 
> -confidence
> -count
> What is the concept of attention value.
> Explain with example please
>
>
>
> Sent from my Samsung Galaxy smartphone.
>
>  Original message 
> From: 'Nil Geisweiller' via opencog <ope...@googlegroups.com > 
>
> Date: 5/2/17 10:45 AM (GMT+05:00) 
> To: ope...@googlegroups.com  
> Cc: gros...@gmail.com , Linas Vepstas <linasv...@gmail.com 
> > 
> Subject: Re: [opencog-dev] Pros and cons 
>
> On 04/28/2017 06:11 PM, Ben Goertzel wrote:
> > to implement new inference rules, you code new ImplicationLinks,
> > wrapped with LambdaLinks etc. ...
>
> Some precision. You can encode rules as data using for instance 
> ImplicationLinks, then use PLN or any custom deduction, modus-ponens, 
> etc rules defined as BindLinks to reason on these. Or directly encode 
> your rules as BindLinks. The following example demonstrates the 2 ways
>
> https://github.com/opencog/atomspace/tree/master/examples/rule-engine/frog
>
> Nil
>
>
> >
> > new inference rules coded as such Atoms, can be executed perfectly
> > well by the URE rule engine...
> >
> > quantitative truth value formulas associated with new inference rules
> > can be coded in Scheme or python and wrapped in GroundedSchemaNodes
> >
> > easy peasy...
> >
> >
> > On Fri, Apr 28, 2017 at 11:09 PM, Daniel Gross <gros...@gmail.com 
> > wrote:
> >> Hi Linas,
> >>
> >> Thank you.
> >>
> >> What is the mechanism to endow new language elements in atomese with an
> >> (custom) inference semantics.
> >>
> >> thank you,
> >>
> >> Daniel
> >>
> >>
> >>
> >>
> >> On Friday, 28 April 2017 17:47:16 UTC+3, linas wrote:
> >>>
> >>>
> >>>
> >>> On Wed, Apr 26, 2017 at 11:43 PM, Daniel Gross <gros...@gmail.com> 
> wrote:
> >>>>
> >>>> Hi Linas,
> >>>>
> >>>> Yes your intuition is right.
> >>>>
> >>>> Thank you for your clarification.
> >>>>
> >>>> What is the core meta-language that is OpenCog into which PLN can be
> >>>> loaded.
> >>>
> >>>
> >>> Its the system of typed atoms and values values.
> >>> http://wiki.opencog.org/w/Atomhttp://wiki.opencog.org/w/Value
> >>>
> >>> You can add new types if you wish (you can remove them too, but stuff 
> will
> >>> then likely break) with the new types defining teh new kinds of 
> knowledge
> >>> you want to represent.
> >>>
> >>> There is a rich set of pre-defined types, which encode pretty much
> >>> everything that is generically useful, across multiple projects that 
> people
> >>> have done.  We call this "language" "atomese"
> >>> http://wiki.opencog.org/w/Atomese
> >>>
> >>> We've gone through a lot of different atom types, by trial and error; 
> the
> >>> current ones are the ones that seem to work OK.  There are over a 
> hundred of
> >>> them.
> >>>
> >>> PLN uses only about a dozen of them, such as ImplicationLink,
> >>> InheritanceLink, and most importantly, EvaluationLink.
> >>>
> >>> Using EvaluationLink is kind-of-like inventing a new type. So most 
> users
> >>> are told to use that, and nothing else.  Some types seem to deserve a
> >>> short-hand notation, and so these get hard-coded for various reasons
> >>> (usually for performanc

Re: [opencog-dev] PLN rules selection

2017-05-02 Thread Vishnu Priya
ticConceptNode "present" (stv 9,7569708e-13 0,0012484395))
)
 (InheritanceLink (stv 1 1)
   (PredicateNode "sell@7adea775-4dd6-4b21-86df-08ea67c56b20" (stv 
9,7569708e-13 0,0012484395))
   (DefinedLinguisticConceptNode "infinitive" (stv 9,7569708e-13 
0,0012484395))
)
 (EvaluationLink (stv 1 1)
   (DefinedLinguisticPredicateNode "definite" (stv 9,7569708e-13 
0,0012484395))
   (ListLink
  (ConceptNode "law@efcdf101-0d88-4f38-af37-f6fcd65fa596")
   )
)
 (InheritanceLink (stv 1 1)
   (InterpretationNode 
"sentence@118669d7-c3c7-4118-8d58-c820f6eac491_parse_0_interpretation_$X" 
(stv 9,7569708e-13 0,0012484395))
   (DefinedLinguisticConceptNode "DeclarativeSpeechAct" (stv 9,7569708e-13 
0,0012484395))
)
 (EvaluationLink (stv 1 1)
   (PredicateNode "to@0610bade-fc40-415c-9bcc-821c2f5d01b2" (stv 
9,7569708e-13 0,0012484395))
   (ListLink
  (ConceptNode "nations@100dab18-b3b4-4365-82ae-bcb37a5a5de7")
   )
)
)

Thanks,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/3c2b9a33-14bb-4dcd-a77a-b5584c0da7a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] PLN rules selection

2017-04-27 Thread Vishnu Priya

Hi Linas,

Well, we do have some code in the opencog.nlp/relex2logic directory  (aka 
> R2L) that will convert the English-language sentence "Frogs eat flies" into 
> a format that PLN can operate on. 
>
> But if you just want to do some basic reasoning with simple English 
> sentences, then R2L+PLN should be a fair way to do it.
>

So, according to 
https://github.com/opencog/opencog/tree/master/opencog/nlp/relex2logic ,  i 
started the relex server,  started scheme,  then  did (nlp-parse "This is a 
test sentence.") and got a SentenceNode as an output.
 
   Next step what should i do, so that FC/BC can operate on it?   

  My input is :
"The law says that it is a crime for an American to sell weapons to hostile
 nations. The country Nono, an enemy of America, has some missiles, and all
 of its missiles were sold to it by ColonelWest, who is American." 

I am trying to convert it to a form such that i can apply BC on it. 
  
Thanks,
 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/0f357d9a-ef1d-4ac7-a7e3-d5dcdefa1f10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-22 Thread Vishnu Priya


Hi Nil,


Currently, as there are no working example files for FC/BC, i thought i 
could come up with some examples and contribute. 

So far, i have tested simple rule like Deduction and got that working. But 
now i wanted to try some other different rule.  

So, as per 
https://github.com/opencog/atomspace/blob/master/tests/rule-engine/BackwardChainerUTest.cxxtest#L510,
 
  where on "criminal.scm",  few rules  
(conditional-instantiation-meta-rule.scm, 
fuzzy-conjunction-introduction-rule.scm, deduction rule) have been applied 
for testing. I have also tried the same rules on same input but i does not 
get any inference. I got only empty SetLink.

I have attached the input file for your reference.

i also tested the same rules on animals.scm example but got no output. :-(

I don't know what is missing here. It would be very helpful if i get some 
help. 

Thanks in advance,
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/2ef709b3-8166-4707-bd9a-486c30c9323d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Criminal.scm
Description: Binary data


Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-21 Thread Vishnu Priya


Thanks Nil. Yeah. That was the problem. I have mistakenly entered the 
> parameters. I did not get from any example file. Now it works as expected. 

I have also created a GitHub Issue for not returning appropriate err 
message. 


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/0bb6bf13-5ea0-46ec-948b-86c5b03ae9e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: Calling forward/backward chainer

2017-04-20 Thread Vishnu Priya


I  installed the recent version and tried FC. Previously i used to work 
> with only three arguments. But now as it requires four parameters, i gave 
> empty ListLink additionally. But it throws Error. 


My scm has: 
  
 (load "/opt/opencog/opencog/pln/rules/deduction-rule.scm") 

(InheritanceLink (stv 0.9 0.9)
(ConceptNode "tom")
(ConceptNode "human"))


(InheritanceLink (stv 0.9 0.9)
(ConceptNode "human")
(ConceptNode "speak"))


(define source
(InheritanceLink (stv 0.9 0.9)
(ConceptNode "tom")
(ConceptNode "human")))


(define base (ConceptNode "rule-base"))

(InheritanceLink  
  (ConceptNode "rule-base")
  (ConceptNode "URE")
)

(ExecutionLink
   (SchemaNode "URE:maximum-iterations")
   (ConceptNode "rule-base")
   (NumberNode 20)
)

(MemberLink (stv 0.9 1)
  deduction-inheritance-rule-name
  (ConceptNode "rule-base")
)

(MemberLink (stv 0.5 1)
  deduction-implication-rule-name
  (ConceptNode "rule-base")
)

(MemberLink (stv 0.5 1)
  deduction-subset-rule-name
  (ConceptNode "rule-base")
)

When i run, 
(cog-fc source base (List) (SetLink))

I get the following:

Backtrace:
In ice-9/boot-9.scm:
 157: 10 [catch #t # ...]
In unknown file:
   ?: 9 [apply-smob/1 #]
In ice-9/boot-9.scm:
 157: 8 [catch #t # ...]
In unknown file:
   ?: 7 [apply-smob/1 #]
   ?: 6 [call-with-input-string "(cog-fc source base (List) (SetLink))\n" 
...]
In ice-9/boot-9.scm:
2320: 5 [save-module-excursion #]
In ice-9/eval-string.scm:
  44: 4 [read-and-eval # #:lang ...]
  37: 3 [lp (cog-fc source base (List) (SetLink))]
In unknown file:
   ?: 2 [opencog-extension cog-fc (# # # #)]
In ice-9/boot-9.scm:
 102: 1 [# 
C++-EXCEPTION ...]
In unknown file:
   ?: 0 [apply-smob/1 # C++-EXCEPTION ...]

ERROR: In procedure apply-smob/1:
ERROR: In procedure cog-fc: Not a node! 
(/home/vishnu/atomspace/opencog/atoms/base/Atom.h:193)
Function args:
((InheritanceLink (stv 0,9 0,9)
   (ConceptNode "tom")
   (ConceptNode "human")
)
 (ConceptNode "rule-base")
 (ListLink
)
 (SetLink
)
)
ABORT: C++-EXCEPTION



-- 
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/640355b3-8649-4ee3-a682-85bbeb76811b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Re: How to write results from guile shell to a file?

2017-04-06 Thread Vishnu Priya

 I tried like this and it worked !! :-)

echo  -e "(define out (open-output-file \"/opt/opencog/file.txt\"))\n(write 
> (nlp-parse \"hello world.\") out)\n(close-output-port out)\n" | nc 
> localhost 17004
>

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/460f5996-fedf-4f32-813d-0a731641db21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] How to write results from guile shell to a file?

2017-04-05 Thread Vishnu Priya
Hello all,

I just want to write the output of  (nlp-parse "This is a test.") to a file.
So i tried like this, 

echo "(nlp-parse \"This is a test.\")" | nc localhost 17004 > file.txt
 
 But i got only the following in the file and not the expected 
SentenceNode. 

 [0;34mguile [1;34m>  [0m [0;32mopencog [1;32m>  [0mEntering scheme shell; 
use ^D or a single . on a line by itself to exit.
 [0;34mguile [1;34m>  [0m

How can i do this?


Thanks,
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/8724fd94-d021-45aa-bd23-57b23a22d75c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] PLN rules selection

2017-03-31 Thread Vishnu Priya


> Sorry I don't understand. What do you mean by "input". Could you give me 
> an example? 

 

I meant,  instead of giving "input" like the following, which involves the 
variable  " X"

(ImplicationScope (stv 1.0 1.0) (TypedVariable (Variable "$X") (Type 
"ConceptNode")) (And (Evaluation (Predicate "croaks") (Variable "$X")) 
(Evaluation (Predicate "eats_flies") (Variable "$X"))) (Inheritance 
(Variable "$X") (Concept "Frog"))) (ImplicationScope (stv 1.0 1.0) 
(TypedVariable (Variable "$X") (Type "ConceptNode")) (Inheritance (Variable 
"$X") (Concept "Frog")) (Inheritance (Variable "$X") (Concept 
"green")))... 

Can i simply give the following KB without variables, and apply 
conditional-instantiation-meta-rule 
and fuzzy-conjunction-introduction-rule to get the inferences? 
(EvaluationLink (PredicateNode "croaks") (ConceptNode "frog")) 
(EvaluationLink (PredicateNode "eats_flies") (ConceptNode "frog")) 
(InheritanceLink (ConceptNode "frog") (ConceptNode "green")) 
(EvaluationLink (PredicateNode "croaks") (ConceptNode "fritz")) 
(EvaluationLink (PredicateNode "eats_flies") (ConceptNode "fritz")) 

-- 
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/278f39e4-8b07-4d13-99d4-40df38a71e4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] PLN rules selection

2017-03-28 Thread Vishnu Priya


Thanks NIL.

I have read the URE documentation. It is clear enough for me to understand. 
>  But  under "Forward Chainer", you have written, 

  " It currently uses a rather brute force algorithms, select sources and 
rules somewhat randomly,..".   But i think, currently we select the source 
and rule(s) manually. It doesn't select on its own. 


I have also read the BC unit tests 
https://github.com/opencog/atomspace/blob/master/tests/rule-engine/BackwardChainerUTest.cxxtest#L321
 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fopencog%2Fatomspace%2Fblob%2Fmaster%2Ftests%2Frule-engine%2FBackwardChainerUTest.cxxtest%23L321=D=1=AFQjCNHu5a6X_lkelksdx-zzIQNAgxbWTA>.
 
I have a question.
In most of the input scm files such as bc-criminals.scm, bc-animals.scm, 
there exists Variables and and are resolved by certain rules. For example 
in 
 
https://github.com/opencog/atomspace/blob/master/tests/rule-engine/bc-criminal.scm
 
, there exists variables in Input and the rules applied are 
conditional-instantiation-meta-rule.scm, 
fuzzy-conjunction-introduction-rule.scm, 
and deduction rule.

My question is :

1. If the input which is give, is R2L form of the sentences but does not 
contain any variable, 
Still can i apply the rules on them to get inferences?
because here the conditional instantiation-meta-rule is in the following 
form and involves substitution of variables
with meaningful atoms.
;; ImplicationScopeLink
;; V
;; P
;; Q
;; |-
;; T
;; P
;; |-
;; Q[V->T]  What if i want to get inferences out of Criminal.scm 
automatically, which is in the form of R2L  and without  hard-coding 
variables? i.e.  (KB without variables)

2. If not possible, then in real time reasoning, do you hard code each time 
the input along with variables 
and then you apply rules? 
It does not seem Practical!! :-( 
3. In 
https://github.com/opencog/atomspace/blob/master/tests/rule-engine/bc-criminal.scm,
 
at the end i see 
;; Cheaping KB, used for debugging
What is this for?


Many Thanks,
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/fb98fbdc-5fa0-4410-a248-08b631d82156%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] PLN rules selection

2017-03-23 Thread Vishnu Priya


Thanks Nil. But i have few questions. 


   1. In real time reasoning, each and every time will you look at the 
   input data and decide the rules manually? 
   2. Only when the input is in certain form of the rule (or matches with 
   the rule) which is being chosen,  we obtain inferences? (this is how i 
   understood!)
   3. And there exists only such limited number of rules?
   4. In the frog.scm, 


https://github.com/opencog/atomspace/blob/master/examples/rule-engine/chaining/frog.scm
 
   
there are two rules defined. How do these rules are called? I could not 
associate these rules  with any of the rules in 
https://github.com/opencog/opencog/blob/master/examples/pln/moses-pln-synergy/scm/pln-bc-config.scm
 

 
 ?!

-- 
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/b93152e1-e531-41c9-a993-4b3781b94f38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: How to handle input data that has an ID?

2017-03-14 Thread Vishnu Priya
Hi,

I tried DefineLink. But the problem is i can define my ID only once. Since 
it is used to give an unique name. 

(DefineLink
(DefinedSchemaNode "ID1")
(InheritanceLink (stv 0.9 0.9)
(ConceptNode "Einstein")
(ConceptNode "man")))

(DefineLink
(DefinedSchemaNode "ID1")
(ListLink
(ConceptNode "Peirce")
(ConceptNode "man")))

I cannot do the above assigning  same IDs in two different places. It 
throws an Exception saying  ID1 is already defined. 

Is there exists something,  so that i can handle such situation?

Thanks,
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/69e9f165-15f6-40e8-b8a9-5f5fde4a24a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Glimpse- Visualizing attentional focus and atomspace

2017-03-06 Thread Vishnu Priya
Which version of angular js should i have. Or how to check it?

On Monday, 6 March 2017 10:59:05 UTC+1, Misgana Bayetta wrote:
>
> May be you have the wrong version of angular js.
>
> On Mon, Mar 6, 2017 at 5:56 PM, Misgana Bayetta <misgana...@gmail.com 
> > wrote:
>
>> I just checked it and it works for me. 
>>
>> On Mon, Mar 6, 2017 at 5:50 PM, Vishnu Priya <vishnup...@gmail.com 
>> > wrote:
>>
>>>
>>>
>>>
>>>  Thanks for the quick reply Misgana. I have exactly done as what you 
>>> said.  
>>>
>>> npm start
>>> load ...libattention.so..
>>> start ecan
>>>
>>>
>>> So what could be the problem?
>>>
>>> -- 
>>> 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+u...@googlegroups.com .
>>> To post to this group, send email to ope...@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/d93ba009-2812-4a53-b928-c32f5f250def%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/opencog/d93ba009-2812-4a53-b928-c32f5f250def%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>> 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
>>
>
>
>
> -- 
> 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/557b2654-cdcd-4e45-b3de-a69225c826aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Glimpse- Visualizing attentional focus and atomspace

2017-03-06 Thread Vishnu Priya


> I forgot to tell you, when i run "npm test ", it throws an error. 
>

 

-- 
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/e4e2d5b3-406c-44c4-9662-1da48de02944%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Re: Glimpse- Visualizing attentional focus and atomspace

2017-03-06 Thread Vishnu Priya


I also clicked on  "SlideMode" but nothing happend. 

-- 
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/d9acd3cf-f4ca-4323-9d71-9e5e90cb8ed4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Glimpse- Visualizing attentional focus and atomspace

2017-03-06 Thread Vishnu Priya
Hello all,

Currently i am stimulating atoms and trying "Glimpse" for visualization. 
I have started REST API, successfully connected to localhost:9000 and i am 
able to see Glimpse GUI. (i have also attached some pics).
But i don't know how to visualize my atomspace and Attentional Focus. 

Please provide me the steps to do so.

Thanks,
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/59e12352-fd5b-45a9-bc1f-9026a4a8229d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Re: How to handle input data that has an ID?

2017-03-03 Thread Vishnu Priya
Associative Link seems to solve my probleam. Let me try like this and get 
back to you.

On Wednesday, 1 March 2017 22:23:47 UTC+1, Roman Treutlein wrote:
>
> Well first of all, using a HebbianLink doesn't make sense you want a 
> AssociativeLink.
>
> And then it should kinda look like this:
>
> (AssociativeLink (stv 0.9 0.9)
> (InheritanceLink (stv 0.9 0.9)
> (ConceptNode "Einstein")
> (ConceptNode "violin-players")
> )
> (NumberNode "8787")
> )
>
>
>
> On Tuesday, February 28, 2017 at 9:18:46 PM UTC+1, Vishnu Priya wrote:
>>
>>
>>
>> i tried FC using the knowledge which has NumberNodes that are associated 
>> with the ConceptNodes through HebbianLink. I applied deduction rule and got 
>> an empty SetLink.
>>
>> Knowledge:
>>
>> (ConceptNode "Socrates" (stv .001 0.9))
>> (ConceptNode "Einstein" (stv .001 0.9))
>> (ConceptNode "Peirce" (stv .001 0.9))
>> (ConceptNode "man" (stv .01 0.9))
>> (ConceptNode "human" (stv .02 0.9))
>>
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "Socrates")
>> (ConceptNode "man"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "Socrates")
>> (ConceptNode "man")
>> (NumberNode "8787"))
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "Einstein")
>> (ConceptNode "man"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "Einstein")
>> (ConceptNode "man")
>> (NumberNode "8787"))
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "Peirce")
>> (ConceptNode "man"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "Peirce")
>> (ConceptNode "man")
>> (NumberNode "8787"))
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "man")
>> (ConceptNode "human"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "man")
>> (ConceptNode "human")
>> (NumberNode "8787"))
>>
>> (InheritanceLink (stv 0.9 0.9)
>> (ConceptNode "Einstein")
>> (ConceptNode "violin-players"))
>>
>> (HebbianLink (stv 0.9 0.9)
>> (ConceptNode "Einstein")
>> (ConceptNode "violin-players")
>> (NumberNode "8787"))
>>
>>
>> (define source
>> (InheritanceLink
>> (ConceptNode "Einstein")
>> (ConceptNode "man")
>> (NumberNode "8787")
>> )
>> )
>>
>>
>> Where is it wrong in including ID?
>>
>>
>> Thanks,
>> Vishnu
>>
>>
>>
>> n Monday, 27 February 2017 16:29:45 UTC+1, Vishnu Priya wrote:
>>>
>>>
>>> Thanks for the reply, Roman. 
>>>
>>> So, should it be like this
>>>
>>> (EvaluationLink
>>> HebbianLink
>>>(PredicateNode "sweet@3fe00455-333f-4cd8-a488-1d23f81c4546")
>>>(ListLink
>>>   (ConceptNode "oranges@33c76dd3-d3c1-4e38-b2ba-b77abfbebadb")
>>>   (NumberNode  7878
>>>)
>>>   
>>> In general, i parse and get r2l output of the sentence. Then i can apply 
>>> a custom code to get the HebbianLink and the NumberNode ?
>>>
>>>
>>>
>>>

-- 
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/b0e56a13-c8cc-4655-a405-a481eff51365%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Re: How to handle input data that has an ID?

2017-02-27 Thread Vishnu Priya

Thanks for the reply, Roman. 

So, should it be like this

(EvaluationLink
HebbianLink
   (PredicateNode "sweet@3fe00455-333f-4cd8-a488-1d23f81c4546")
   (ListLink
  (ConceptNode "oranges@33c76dd3-d3c1-4e38-b2ba-b77abfbebadb")
  (NumberNode  7878
   )
  
In general, i parse and get r2l output of the sentence. Then i can apply a 
custom code to get the HebbianLink and the NumberNode ?



-- 
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/0a65bf7a-225b-4b00-8b89-f85b5e0a1f73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] cog-fc returns empty Setlink

2017-02-24 Thread Vishnu Priya
Hi, 

This is the data, that i gave,

(EvaluationLink
   (PredicateNode "eats")
   (ListLink
  (ConceptNode "tom")
  (ConceptNode "chicken-feet")
  
   )
)

(InheritanceLink (stv 0.9 0.9)
(ConceptNode "tom")
(ConceptNode "chinese")
)


(EvaluationLink
   (PredicateNode "eats")
   (ListLink
   (ConceptNode "tim")
  (ConceptNode "chicken-feet")
 
   )
)

(InheritanceLink (stv 0.9 0.9)
(ConceptNode "tim")
(ConceptNode "chinese")
)

(EvaluationLink
   (PredicateNode "eats")
   (ListLink
   (ConceptNode "chinese")
  (ConceptNode "chicken-feet")
 
   )
)

(InheritanceLink (stv 0.9 0.9)
(ConceptNode "Jim")
(ConceptNode "chinese")
)

*Defining Source *:
(define source
(InheritanceLink
(ConceptNode "Jim")
(ConceptNode "chinese")
)
)

*Defining rules and adding rules to the rule-base:*

(load "/opt/opencog/opencog/pln/rules/deduction-rule.scm

(define base (ConceptNode "my-rule-base"))

(InheritanceLink  
(ConceptNode "my-rule-base")
(ConceptNode "URE")
)

(ExecutionLink
   (SchemaNode "URE:maximum-iterations")
   (ConceptNode "my-rule-base")
   (NumberNode "100")
)

(MemberLink (stv 0.9 1)

deduction-inheritance-rule-name
(ConceptNode "my-rule-base")
)

(MemberLink (stv 0.5 1)
deduction-implication-rule-name
(ConceptNode "my-rule-base")
)

(MemberLink (stv 0.5 1)
deduction-subset-rule-name
(ConceptNode "my"my-rule-base"))


When i run, (cog-fc source base (SetLink))
it returned, 

(SetLink
)

What do i miss here???


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/fb264f62-fed8-478d-bdd1-0174cc636e94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Status Backward Chainer

2017-02-22 Thread Vishnu Priya
Hello,

Is Backward chainer matured now? 
A month ago or so, Nil told that it would work soon. 
Like forward chainer, is it possible to try backward chainer now ?

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/b4023dff-5b18-4cb8-8177-8bdffdc6bfde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Setting Goals and Actions as OpenPsi Rules

2017-01-27 Thread Vishnu Priya
Thanks for the ideas Ben.

On Thursday, 26 January 2017 17:48:35 UTC+1, Ben Goertzel wrote:
>
> The  most direct way to approach this sort of problem in OpenCog would 
> be just as a backward chainer query   Nil is currently a few hours 
> away from having the backward chainer ready for you to try on these 
> sorts of problems... 
>
> Alternately, one could use ECAN, and one could write a function (say a 
> loop in a Scheme function) that repeatedly stimulates the Atom 
>
> A(X) := 
> LambdaLink 
>   EvaluationLink 
> PredicateNode "eats" 
> ListLink 
>  VariableNode $X 
>   ConceptNode "chicken" 
>
> with ShortTermImportance (STI) ... 
>
> Then one could create a Goal Atom of "learn new things" ... and then a 
> Psi implication saying, basically, 
>
> PredictiveImplication 
>  finding X  so that A(X) 
>  fulfilling "learn new things" goal 
>
> This is somewhat elaborate for a simple thing, but would be a good 
> exercise in using the architecture... 
>
> -- Ben 
>
>
> On Thu, Jan 26, 2017 at 9:16 AM, Vishnu Priya <vishnup...@gmail.com 
> > wrote: 
> > Hi, 
> > 
> > for ex. i have the following input. 
> > 
> > Bob lives in china. Bob likes chicken-feet. 
> > Jim lives in america. Jim likes pizza. 
> > Tim lives in china. Tim likes chicken-feet. 
> > Joe lives in china. 
> > 
> > Say, my goal is to find who eats chicken-feet. 
> > 
> > How can i define Goal and action for my MindAgent as OpenPsi rules or 
> there 
> > exists already any example, so that i can play? Where do i start with? 
> > when the goal is defined, will the agent selects action/procedure based 
> on 
> > reasoning.  is this where PLN comes into act and high STI actions gets 
> > selected in order to attain the goal? 
> > 
> > 
> > 
> > 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+u...@googlegroups.com . 
> > To post to this group, send email to ope...@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/8f34f57e-5c67-459b-9c09-74de4cb5a00b%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Ben Goertzel, PhD 
> http://goertzel.org 
>
> “I tell my students, when you go to these meetings, see what direction 
> everyone is headed, so you can go in the opposite direction. Don’t 
> polish the brass on the bandwagon.” – V. S. Ramachandran 
>

-- 
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/2cf45e6f-03b5-4597-81da-16c582f0b575%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Setting Goals and Actions as OpenPsi Rules

2017-01-26 Thread Vishnu Priya
Hi,

for ex. i have the following input. 

Bob lives in china. Bob likes chicken-feet.
Jim lives in america. Jim likes pizza.
Tim lives in china. Tim likes chicken-feet.
Joe lives in china. 

Say, my goal is to find who eats chicken-feet. 

   1. How can i define Goal and action for my MindAgent as OpenPsi rules or 
   there exists already any example, so that i can play? Where do i start 
   with? 
   2. when the goal is defined, will the agent selects action/procedure 
   based on reasoning.  is this where PLN comes into act and high STI actions 
   gets selected in order to attain the goal?



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/8f34f57e-5c67-459b-9c09-74de4cb5a00b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Loading data for chatbot by primitive-load

2016-11-22 Thread Vishnu Priya

Hi Man,

Thanks for the reply. I have attached the scm file for your reference. 






On Monday, 21 November 2016 11:36:01 UTC+1, Man Hin Leung wrote:
>
> Hi Vishnu,
>
> I couldn't reproduce this problem... can you share the scm file you were 
> using?
>
>
>
> On Mon, Nov 21, 2016 at 6:16 PM, Vishnu Priya <vishnup...@gmail.com 
> > wrote:
>
>> Hello,
>>
>> I know that i could give input to the chatbot by (nlp-parse "the sky is 
>> beautiful").
>> But i also tried giving it a scm file, which has the parses of the above 
>> sentence using (primitive-load  .).
>> Then i tried querying by asking (process-query "What is beautiful"). But 
>> it says, sorry! i don't know the answer.
>>
>> It answers only when i do (nlp-parse) and not when i load a scm file.  
>> Logically it should also work right?
>>
>> Thanks,
>> 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+u...@googlegroups.com .
>> To post to this group, send email to ope...@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/51ce7a3f-7490-4d3c-ae28-caf8a1db58c0%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/opencog/51ce7a3f-7490-4d3c-ae28-caf8a1db58c0%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/bb8ec8aa-cd6a-4e6d-bf51-6c19c59c859f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


body.scm
Description: Binary data


[opencog-dev] Loading data for chatbot by primitive-load

2016-11-21 Thread Vishnu Priya
Hello,

I know that i could give input to the chatbot by (nlp-parse "the sky is 
beautiful").
But i also tried giving it a scm file, which has the parses of the above 
sentence using (primitive-load  .).
Then i tried querying by asking (process-query "What is beautiful"). But it 
says, sorry! i don't know the answer.

It answers only when i do (nlp-parse) and not when i load a scm file. 
 Logically it should also work right?

Thanks,
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/51ce7a3f-7490-4d3c-ae28-caf8a1db58c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-11-21 Thread Vishnu Priya
Hmm! yes. i am getting it now.

Thanks and regards,
Vishnu.

On Saturday, 19 November 2016 13:32:40 UTC+1, linas wrote:
>
> That makes the problem harder. You still have to somehow deal with 
> different word-senses for "apple", and in addition, you also need to create 
> a a model of the mental state of id1.  So, if id1 is a child, the 
> word-sense for "apple" and "sweet" is probably different than if id1 is an 
> iphone fanboi.   This opens a can of worms: what are id1's beliefs and 
> world-view?
>
> (and context dependent: did id1 say that while standing in front of a 
> store-front selling Apple computer products? or while standing  in front of 
> a grocery display?)
>
> I think this is "solvable", but its at/past the cutting-edge of what 
> anyone else is doing with opencog.   I've been trying to work on "mental 
> models" but it's currently hard.
>
> --linas
>
>
> On Sat, Nov 19, 2016 at 6:06 AM, Vishnu Priya <vishnup...@gmail.com 
> > wrote:
>
>>
>> I also had an another idea of coupling the sentences along with their id. 
>> Ex. Why can't i give sentences like  "Apples are sweet, said by id1". 
>> "Farmers are starving, said by id2" .So that i would know which sentence 
>> has which id.  what do you say? 
>>
>> Thanks,
>> Vishnu
>>
>>
>> On Monday, 14 November 2016 21:53:56 UTC+1, linas wrote:
>>
>>>
>>> A better design would be to explicitly acknowledge that words have 
>>> meanings.  The way that this is currently done looks roughly like this:
>>>
>>> (EvaluationLink  
>>> (PredicateNode "is")
>>>(ListLink
>>>   (ConceptNode "apple@meaning-42")
>>>   (ConceptNode "fruit@meanning-66")
>>>) 
>>> )
>>>
>>> I hope the above is "obvious": the 42nd kind of meaning of the word 
>>> "apple" is a kind of "fruit", where by "fruit", we mean the 66th entry in 
>>> Webster's dictionary.
>>>
>>> (ReferenceLink
>>>   (ConceptNode "apple@meaning-42")
>>>   (WordNode "apple")
>>> )
>>>
>>> That tells you the actual word that gets used for meaning-42. This is a 
>>> lexical function https://en.wikipedia.org/wiki/Lexical_function
>>>
>>> (WordInstanceLink
>>> (SentencNode "id1")
>>> (WordInstanceNode "apple@bf71826c-487e-42df-a941-0ecd3c942a76")
>>> )
>>>
>>> This tells you that the the word apple occurred in sentence id1
>>>
>>> (ReferenceLink
>>>(WordInstanceNode "apple@bf71826c-487e-42df-a941-0ecd3c942a76")
>>>(ConceptNode "apple@meaning-42")
>>> )
>>>
>>> This tells you that the word apple in sentence id1 actually corresponds 
>>> to meaning 42.
>>>
>>> See?  No context link at all.
>>>
>>> The above oversimplifies things a little bit.  Some of the reference 
>>> links should probably be EvaluationLinks. The lexical functions need to be 
>>> improved, a lot.  The current output is documented here: 
>>> http://wiki.opencog.org/w/RelEx_OpenCog_format but it could be 
>>> over-hauled and improved, its not perfect.
>>>
>>> I believe that the above should work well with PLN, but that remains to 
>>> be seen: again Nil is working on this now.
>>>
>>> --linas
>>>
>>>  
>>>
>>> On Mon, Nov 14, 2016 at 9:34 AM, Vishnu Priya <vishnup...@gmail.com> 
>>> wrote:
>>>
>>>> Hey Linas!
>>>>
>>>> Thanks for the reply. It's ok. Totally understandable.!!
>>>>
>>>> Yeah just read about ContextLink on wiki. 
>>>>
>>>> I have a scenario, where i have sentences that i want to give to NLP 
>>>> Pipeline.  Along with sentences, i also have an attribute called id. Like 
>>>> a 
>>>> reference for sentence.
>>>> Each sentence is associated with an identifier. For me, it would be 
>>>> useful when i have the sentences parsed along with their id. 
>>>> Later, say i stimulate and get STI, whatever i do, finally i should be 
>>>> knowing, to what id the atom belongs to.  
>>>>
>>>> So i thought, with something like below, i might achieve that. 
>>>> apple is fruit in the context of id1.
>>>> (EvaluationLink   

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

2016-11-19 Thread Vishnu Priya

I also had an another idea of coupling the sentences along with their id. 
Ex. Why can't i give sentences like  "Apples are sweet, said by id1". 
"Farmers are starving, said by id2" .So that i would know which sentence 
has which id.  what do you say? 

Thanks,
Vishnu


On Monday, 14 November 2016 21:53:56 UTC+1, linas wrote:
>
>
> A better design would be to explicitly acknowledge that words have 
> meanings.  The way that this is currently done looks roughly like this:
>
> (EvaluationLink  
> (PredicateNode "is")
>(ListLink
>   (ConceptNode "apple@meaning-42")
>   (ConceptNode "fruit@meanning-66")
>) 
> )
>
> I hope the above is "obvious": the 42nd kind of meaning of the word 
> "apple" is a kind of "fruit", where by "fruit", we mean the 66th entry in 
> Webster's dictionary.
>
> (ReferenceLink
>   (ConceptNode "apple@meaning-42")
>   (WordNode "apple")
> )
>
> That tells you the actual word that gets used for meaning-42. This is a 
> lexical function https://en.wikipedia.org/wiki/Lexical_function
>
> (WordInstanceLink
> (SentencNode "id1")
> (WordInstanceNode "apple@bf71826c-487e-42df-a941-0ecd3c942a76")
> )
>
> This tells you that the the word apple occurred in sentence id1
>
> (ReferenceLink
>(WordInstanceNode "apple@bf71826c-487e-42df-a941-0ecd3c942a76")
>(ConceptNode "apple@meaning-42")
> )
>
> This tells you that the word apple in sentence id1 actually corresponds to 
> meaning 42.
>
> See?  No context link at all.
>
> The above oversimplifies things a little bit.  Some of the reference links 
> should probably be EvaluationLinks. The lexical functions need to be 
> improved, a lot.  The current output is documented here: 
> http://wiki.opencog.org/w/RelEx_OpenCog_format but it could be 
> over-hauled and improved, its not perfect.
>
> I believe that the above should work well with PLN, but that remains to be 
> seen: again Nil is working on this now.
>
> --linas
>
>  
>
> On Mon, Nov 14, 2016 at 9:34 AM, Vishnu Priya <vishnup...@gmail.com 
> > wrote:
>
>> Hey Linas!
>>
>> Thanks for the reply. It's ok. Totally understandable.!!
>>
>> Yeah just read about ContextLink on wiki. 
>>
>> I have a scenario, where i have sentences that i want to give to NLP 
>> Pipeline.  Along with sentences, i also have an attribute called id. Like a 
>> reference for sentence.
>> Each sentence is associated with an identifier. For me, it would be 
>> useful when i have the sentences parsed along with their id. 
>> Later, say i stimulate and get STI, whatever i do, finally i should be 
>> knowing, to what id the atom belongs to.  
>>
>> So i thought, with something like below, i might achieve that. 
>> apple is fruit in the context of id1.
>> (EvaluationLink 
>>   (ContextLink id1
>>(PredicateNode "is")
>>(ListLink
>>   (ConceptNode "apple")
>>   (ConceptNode "fruit")
>>) 
>> )
>>
>>
>>
>> But i don't know, how to input my sentences along with their identifiers. 
>> Is it possible somehow to do such a thing of incorporating identifiers ?
>> or is it totally not doable?
>>
>>
>> --vishnu
>>
>>
>>
>>
>> On Friday, 11 November 2016 02:30:44 UTC+1, linas wrote:
>>>
>>> Hi,
>>>
>>> sorry just now recovering from system outages and an email overload. 
>>>
>>> ContextLink and how to use it is documented on the wiki.
>>>
>>> Currently it it not used very much, or at all. 
>>>
>>> ContextLinks only make sense once you know how to asssign meaning to 
>>> things -- syntax parsing of sentences is far too low-level for this, 
>>> because you don't yet know what the word "apple" is.
>>>
>>> --linas
>>>
>>>
>>>
>>> On Fri, Oct 21, 2016 at 10:27 AM, Vishnu Priya <vishnup...@gmail.com> 
>>> wrote:
>>>
>>>> Hey Linas,
>>>>
>>>> I would like to know how to use ContextLink. 
>>>>>
>>>>
>>>>- The Apple is red in color.   
>>>>- The Headquarters of apple is in California.  
>>>>
>>>> Each and every sentence of mine has certain context word.
>>>> I want the former sentence to be parsed along with  ContextLink fruit 
>>>> and the later as company.  So that later, i can identify which atom 
>>>> belongs 
>>>> to which context. 
>>>> Should i make changes at the parser level? What should i do? 
>>>>
>>>> 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/1333af72-6237-4499-a060-0db4a88b08b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] Relex to DB

2016-11-02 Thread Vishnu Priya
Hello,

I am trying the following:

As sentences come in, it should go through NLP pipeline i.e. parsed by 
Relex and should be stored in DB automatically. 
Because  i can't manually do all the time giving sentence to relex server 
localhost , save the results in a scheme file,  load and store in DB.

How can i do this? or is there  already exists any script for doing this?



Thanks in advance,
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/b4ac4c19-39cd-4472-b241-101ad43a3f4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-10-19 Thread Vishnu Priya



Misgana told that, if i want to get STI for atoms, i need to start-ecan and 
give stimulus. I did it and also saw atoms with STI in attentional focus. 

Now, I have a doubt. Please rectify me, if i am wrong.

when i start ecan and give stimulus, automatically PLN starts the inference 
process by carrying out forward and backward chaining process. 
In this process, the atoms which were used by PLN are given STI. These 
atoms with hight STI in turn used again by PLN for inference. 

I think, this process of inference is like learning done by PLN for 
reasoning purpose. Since it applies some rule over atoms and find new 
atoms. It would be very interesting to see the results of such inference. 
How can i see it?


Thanks,
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/ad5ce325-fa93-4886-bcd3-e95c6b52ed16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Error while executing query -pgsql

2016-10-19 Thread Vishnu Priya


> You need to open the database before creating atoms; 
>
>  Yeah. I did the following:

guile> (use-modules (opencog) (opencog atom-types) (opencog persist-pgsql) 
(opencog openpsi))
guile> (pgsql-open "xxx" "yyy" "zzz")
()
guile>(primitive-load "/opt/opencog/opencog/scm/test.scm")
guile> (pgsql-store)
()

when i closed everything and restarted, it returns empty. seems nothing is 
saved in DB. 
guile> (cog-chase-link 'ListLink 'ConceptNode (ConceptNode "US"))
()

What am i missing here?



Thanks,
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/ed7338a6-4d71-41bc-ab22-2db392ce7c7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-10-17 Thread Vishnu Priya

Thnaks Linas for the reply. 
 

> I would like to know some more info about Truth values.
>

How is atom's truth value is updated based on new observations?  
How can truth values of certain atoms in a particular context change a lot? 
 ( i came across this line in the book, "*if truth values of a certain sort 
of atom in certain context change a lot, then confidence decay rate of the 
atoms of that sort should be increased.*")
Could you please explain with few example sentences. 

 Is ConfidenceDecay Mind Agent already implemented?

 If so, then i assume that confidence-decaying predicates which are 
important Atoms but are unconfident, are given STI, so as to make it likely 
that they may be used for inference and this is how atoms become important. 

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/69f01f68-5a05-43f7-a4b1-a3f61adb209f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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.


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

2016-10-12 Thread vishnu

>
> Hey Roman,
>

Thanks for the reply :-)

I am not sure what exactly you want to use the AttentionValues for

With attention values, i thought i could do the following:
I have 24x7 tweets coming. So i thought,  I can send them to NLP pipeline 
and get Atoms. Let's say most of the people tweet about Presidential 
Election.  I assumed that,  when feeding these atoms into atomspace, 
somehow atoms related to "Election" will get High STI?. Since they occur 
more often now-a-days. Say, there will be a lot of Trump and Hilary Clinton 
atoms. Somehow they get high STI  (?!!) and i can retrieve those top ranked 
atoms and its related atoms (since STI is also diffused to similar atoms). 

That was the idea. But i don't know, whether Attention values works like 
this for pursuing the above mentioned. :-(.  What am i missing??

Boosting STI/LTI would be done when they become relevant i.e they just 
entered the AtomSpace or NLP found them to be useful.
I could not figure out, on what basis stimulus is given to atom. In 
general, How atoms become important/relevant?





 
 

-- 
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/3d361b65-5ab6-448b-9e15-fe59c6151252%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[opencog-dev] About Attention Values and Truth Values

2016-10-11 Thread vishnu
Hello all,

Say, I have the following example sentences 


   - apple is rich in vitamins. 
   - apple makes the doctor away. 
   - apple is healthy. 
   - apple is red in color. 
   - eva eats apple.
   - Steve Jobs invented apple.
   - apple iphone is usually costly. 
   - headquaters of apple inc. is in california. 
   - apple products are robust.
   

i just parsed these sentences and got R2L outputs. Example of one such 
output is as follows (apple products are robust):

((ImplicationLink
   (PredicateNode "robust@a80f418c-0d57-477d-8d77-7077068e3033")
   (PredicateNode "robust" (stv 0.045454547 0.0012484394))
)
 (InheritanceLink
   (ConceptNode "products@c9f041f5-5583-4cb0-ab57-eec13624a28b")
   (ConceptNode "product" (stv 0.019607844 0.0012484394))
)
 (EvaluationLink
   (PredicateNode "robust@a80f418c-0d57-477d-8d77-7077068e3033")
   (ListLink
  (ConceptNode "products@c9f041f5-5583-4cb0-ab57-eec13624a28b")
   )
)
 (InheritanceLink
   (InterpretationNode 
"sentence@293aa7fb-891c-48a5-ab25-e5be24cbbf47_parse_0_interpretation_$X")
   (DefinedLinguisticConceptNode "DeclarativeSpeechAct")
)
 (InheritanceLink
   (ConceptNode "apple@7f6ace14-d5bf-4ffb-aa3b-dfc4bce59f7a")
   (ConceptNode "apple" (stv 0.17647059 0.011124846))
)
 (InheritanceLink
   (ConceptNode "products@c9f041f5-5583-4cb0-ab57-eec13624a28b")
   (ConceptNode "apple@7f6ace14-d5bf-4ffb-aa3b-dfc4bce59f7a")
)
)


1.  When you look at the example sentences, you will know that i have 
framed all sentences with the word "apple" that comes in two different 
contexts.  Apple as a fruit and and as a company. I think,  Atoms have 
multiple truth values depending upon the context. (I assume Atoms with the 
same Context will have similar Truth Values.?!) . Is it possible to filter 
atoms based on  some TV depending upon particular context? 

2.  Like STV, i am unable to see STI  in the  R2L output.  I assume the 
atom with the highest number of links gets  automatically high STI value. 
So is it possible to retrieve top most important atoms based on STI ? ( 
also may be top atom's related atoms in a similar context).  If so, how can 
i acheive that?

3. The process of forgetting and recovering from the disk is possible only 
when i save atoms in postgres. So everytime when i have huge text, i should 
parse each line using (nlp-parse ""), convert into R2L output  using 
(parse-get-r2l-outputs.)  and in turn should store the obtained results 
in postgres.   Am i missing anything here?. 



Thanks in advance
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/f641c4f3-0a91-40bb-bb65-1ca0daaf6689%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.