Re: [opencog-dev] Re: opencog with crawled data

2016-09-15 Thread Linas Vepstas
On Thu, Sep 15, 2016 at 10:12 AM,  wrote:

>
> So should i post this segmentation fault in github?
>

Sure. It would be better if you fixed it!


>
> --Thanks
> Vishnu
>
>
>
>>
>> :-(
>> OK, so .. here's the deal:
>>
>> -- Clearly, the segfault is bad, and needs to be fixed!
>>
>> -- there are two versions of the pattern miner, the one here, and the one
>> in a different (older) branch of opencog.  Shujing Ke did most of her work
>> in the older branch, and no one has ported her changes to the current
>> code.  This should also probably be done.  The older branch is here:
>> https://github.com/opencog/opencog/branches  PatternMinerEmbodiment --
>> you can see that she has made 65 updates, but that her code is 4639 commits
>> behind master!  It might be the case that her code will nt segfault, no one
>> knows.
>>
>> -- its not entirely obvious to Nil or to me that the Pattern Miner is
>> correctly written, anyway.  We need to review it.  There is a very highly
>> specialized version of a pattern miner on the language-learning code, and I
>> was planning on perhaps replacing that by a general-purpose miner, but have
>> not gotten around to it. Its a big project.
>>
>> TL;DR: We need someone to roll up their sleeves, and take control of the
>> pattern Miner, and fix it, advance it, improve it, etc.
>>
>>>
>>> how can i give bunch of sentences and get R2L outputs, which in turn i
>>> can give to pattern miner?
>>>
>>
>> Well, that is the magic question, isn't it?  I'm not sure what state the
>> pattern-miner demos and examples are in. A good place to start would be to
>> review those, and then write a new one, explicitly dealing with language
>> issues.
>>
>>>
>>>
>>> I also thought a way to do this:
>>> --->  converting bunch of lines into cff  by using "batch-process.sh"
>>>  and in turn converting  that into scm ./cff-to-opencog.pl
>>> 
>>>  .
>>>
>>>
>>
>> cff is useful only for saving some CPU time during bulk processing.
>> Right now, the system is not ready for bulk processing, so saving some CPU
>> cycles is not worth the effort.
>>
>>
>>> But it will be in the form of relex output.
>>> so picking some WordInstanceNode of each sentence from the relex output
>>> and doing the below to get R2L outputs.
>>>
>>> (cog-incoming-set (car (cog-incoming-set (ConceptNode (cog-name
>>> (WordInstanceNode "apple@2d15518b-c626-4ce3-8e6d-ecd07d3f9e46"))
>>> But it would be tedious!!
>>>
>>
>> why is that tedious?  That's more or less how you're supposed to do it:
>> its a giant graph, you have to chase the edges of the graph to get what you
>> want.  Your code is not the most elegant way to chase through an edge, but
>> its not atypical. There are various InheritanceLinks, etc. in place to
>> simplify such searches.  There are also various utilities and macros for
>> some of this stuff (in the utilities.scm and nlp-utilities.scm files)
>>
>> --linas
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>

>>

-- 
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/CAHrUA36pSoDMEqBFUj%2BpFpDCpCwjWSt8nZyMz9xmNy4PMy1WJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: opencog with crawled data

2016-09-15 Thread vishnupriyaa31

So should i post this segmentation fault in github? 

--Thanks
Vishnu



>
> :-(
> OK, so .. here's the deal: 
>
> -- Clearly, the segfault is bad, and needs to be fixed!
>
> -- there are two versions of the pattern miner, the one here, and the one 
> in a different (older) branch of opencog.  Shujing Ke did most of her work 
> in the older branch, and no one has ported her changes to the current 
> code.  This should also probably be done.  The older branch is here:  
> https://github.com/opencog/opencog/branches  PatternMinerEmbodiment -- 
> you can see that she has made 65 updates, but that her code is 4639 commits 
> behind master!  It might be the case that her code will nt segfault, no one 
> knows.
>
> -- its not entirely obvious to Nil or to me that the Pattern Miner is 
> correctly written, anyway.  We need to review it.  There is a very highly 
> specialized version of a pattern miner on the language-learning code, and I 
> was planning on perhaps replacing that by a general-purpose miner, but have 
> not gotten around to it. Its a big project.
>  
> TL;DR: We need someone to roll up their sleeves, and take control of the 
> pattern Miner, and fix it, advance it, improve it, etc.
>
>>
>> how can i give bunch of sentences and get R2L outputs, which in turn i 
>> can give to pattern miner? 
>>
>
> Well, that is the magic question, isn't it?  I'm not sure what state the 
> pattern-miner demos and examples are in. A good place to start would be to 
> review those, and then write a new one, explicitly dealing with language 
> issues. 
>
>>
>>
>> I also thought a way to do this:  
>> --->  converting bunch of lines into cff  by using "batch-process.sh" 
>>  and in turn converting  that into scm ./cff-to-opencog.pl 
>> 
>>  . 
>>
>>
>
> cff is useful only for saving some CPU time during bulk processing.  Right 
> now, the system is not ready for bulk processing, so saving some CPU cycles 
> is not worth the effort.
>  
>
>> But it will be in the form of relex output.
>> so picking some WordInstanceNode of each sentence from the relex output 
>> and doing the below to get R2L outputs. 
>>
>> (cog-incoming-set (car (cog-incoming-set (ConceptNode (cog-name 
>> (WordInstanceNode "apple@2d15518b-c626-4ce3-8e6d-ecd07d3f9e46"))
>> But it would be tedious!!
>>
>
> why is that tedious?  That's more or less how you're supposed to do it: 
> its a giant graph, you have to chase the edges of the graph to get what you 
> want.  Your code is not the most elegant way to chase through an edge, but 
> its not atypical. There are various InheritanceLinks, etc. in place to 
> simplify such searches.  There are also various utilities and macros for 
> some of this stuff (in the utilities.scm and nlp-utilities.scm files)
>
> --linas
>  
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>>
>

-- 
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/5c8162ff-86f3-4245-abc4-439a33a9f61e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: opencog with crawled data

2016-09-13 Thread Linas Vepstas
Ah! Now we're getting somewhere!

On Tue, Sep 13, 2016 at 8:55 AM,  wrote:

>
> I just took a simple sentence  "apple is fruit"
> ---> (nlp-parse "apple is fruit")
> ---> (parse-get-r2l-outputs (ParseNode 
> "sentence@2ac41081-45a2-44c6-aae4-a95451a9ae21_parse_0"
> (stv 1 0.991)))
> I got the following as output:
>

Looks good to me.

>
>
> Then i parsed another sentence and got R2L results. After that, I put  r2l
> outputs of both sentences in a scm file (input.scm)  and gave it to pattern
> miner. But it threw ERROR (segmentation_fault.png).
>

:-(
OK, so .. here's the deal:

-- Clearly, the segfault is bad, and needs to be fixed!

-- there are two versions of the pattern miner, the one here, and the one
in a different (older) branch of opencog.  Shujing Ke did most of her work
in the older branch, and no one has ported her changes to the current
code.  This should also probably be done.  The older branch is here:
https://github.com/opencog/opencog/branches  PatternMinerEmbodiment -- you
can see that she has made 65 updates, but that her code is 4639 commits
behind master!  It might be the case that her code will nt segfault, no one
knows.

-- its not entirely obvious to Nil or to me that the Pattern Miner is
correctly written, anyway.  We need to review it.  There is a very highly
specialized version of a pattern miner on the language-learning code, and I
was planning on perhaps replacing that by a general-purpose miner, but have
not gotten around to it. Its a big project.

TL;DR: We need someone to roll up their sleeves, and take control of the
pattern Miner, and fix it, advance it, improve it, etc.

>
> how can i give bunch of sentences and get R2L outputs, which in turn i can
> give to pattern miner?
>

Well, that is the magic question, isn't it?  I'm not sure what state the
pattern-miner demos and examples are in. A good place to start would be to
review those, and then write a new one, explicitly dealing with language
issues.

>
>
> I also thought a way to do this:
> --->  converting bunch of lines into cff  by using "batch-process.sh"  and
> in turn converting  that into scm ./cff-to-opencog.pl
> 
>  .
>
>

cff is useful only for saving some CPU time during bulk processing.  Right
now, the system is not ready for bulk processing, so saving some CPU cycles
is not worth the effort.


> But it will be in the form of relex output.
> so picking some WordInstanceNode of each sentence from the relex output
> and doing the below to get R2L outputs.
>
> (cog-incoming-set (car (cog-incoming-set (ConceptNode (cog-name
> (WordInstanceNode "apple@2d15518b-c626-4ce3-8e6d-ecd07d3f9e46"))
> But it would be tedious!!
>

why is that tedious?  That's more or less how you're supposed to do it: its
a giant graph, you have to chase the edges of the graph to get what you
want.  Your code is not the most elegant way to chase through an edge, but
its not atypical. There are various InheritanceLinks, etc. in place to
simplify such searches.  There are also various utilities and macros for
some of this stuff (in the utilities.scm and nlp-utilities.scm files)

--linas


>
>
> in general, how can i handle this, i.e. giving bunch of sentences and
> getting r2l outputs?
>
>
>
>
>
>
>
>
>
>
>
>
>>

-- 
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/CAHrUA36WH_H92k8KnxtR62AZz-%2Bc%2BOY3D%3DLJ_KB_Up1-oJ3vVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: opencog with crawled data

2016-09-13 Thread Linas Vepstas
What Ben said -- you should run your data through the NLP pipeline.

On Mon, Sep 12, 2016 at 5:50 PM,  wrote:

> Hi Linas,
>
>
> (EvaluationLink
> (PredicateNode "sentence, location and body")
> (ListLink
>  (EvaluationLink
>  (PredicateNode "coordinates, country, continent, body")
>  (ListLink
> (WordNode "-86.3222")
> (WordNode  "32.3934")
> (WordNode  "US" )
> (WordNode  "northamerica")
>  (WordNode  ".we need a new channel trump tv!!.")
>
> 
>
>
>1. Do you mean something like this? How the input should be?   (i
>tried giving it, but it says unbound variable "WordNode")
>2. If i have say for ex,
>   1. ((WordNode "US") (WordNode  "trump is a candidate") )
>   2. ((WordNode "US") (WordNode  "trump tv") )
>   3. ((WordNode "US") (WordNode  " trump wins ") )
>   4. ((WordNode "US") (WordNode  " trump president?") )
>
>will it find that sentences that have "trump" always comes from
> US?(.. (wordNode "US") (WordNode "Trump")...).
>
> Any guidelines would be helpful
>
> Thanks in advance,
> Vishnu
>
>
>
> On Saturday, 10 September 2016 04:37:09 UTC+2, linas wrote:
>>
>> Hi,
>>
>>
>> On Wed, Sep 7, 2016 at 4:57 AM,  wrote:
>>
>>>
>>> I think, i should do the following (?!)
>>>
>>> write probably a python script that produces the following output for
>>> every json file:
>>>
>>> (EvaluationLink
>>> (PredicateNode "sentence, location and body")
>>> (ListLink
>>>  (SentenceNode "an unique string ")
>>>  (EvaluationLink
>>>  (PredicateNode " coordinates, country, continent, body")
>>>  (ListLink
>>> (ConceptNode "-86.3222")
>>> (ConceptNode  "32.3934")
>>> (ConceptNode  "US" )
>>> (ConceptNode  "northamerica")
>>>  (ConceptNode  ".we need a new channel trump
>>>tv!!.)
>>>   .
>>>   .
>>>   . )))
>>>
>>>
>>> Then i can give this to pattern miner.
>>>
>>> Am i missing anything here?
>>>
>>
>> Well, the pattern miner won't perform any parsing of the sentences for
>> you, so the most likely thing it will do is find that there's lots of
>> things with  (ConceptNode  "US" ) in them, and that this is highly
>> correlated with  (ConceptNode  "northamerica")  After that, it might find
>> patterns in the lat/log.  It does NOT do any string compares of the names
>> of any nodes.
>>
>> Unless you put at least WordNodes in there, you will get no text analysis.
>>
>> --linas
>>
>>
>>>
>>>
>>> Thanks in advance.
>>>
>>>
>>>
>>> On Tuesday, September 6, 2016 at 4:05:43 PM UTC+2, vishnup...@gmail.com
>>> wrote:

 Hello all,

 I have attached a small example Json file, which is generated from
>> twitter stream. I will be getting lots of Json chunks like this. How can 
>> i
>> give this to pattern miner. i.e. can i convert it to hypergraph? What are
>> the steps involved?. what would be the best way to start with.
>>
> Any guidelines would be very much helpful.
>

 Thanks in advance

>>>
>>

-- 
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/CAHrUA35wKGA5%2BW0FZi63szJuM0aF95JyAAyLpZqBt5JXDqLz0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: opencog with crawled data

2016-09-12 Thread vishnupriyaa31
Hi Linas,


(EvaluationLink
(PredicateNode "sentence, location and body")
(ListLink  
 (EvaluationLink
 (PredicateNode "coordinates, country, continent, body")
 (ListLink
(WordNode "-86.3222")
(WordNode  "32.3934") 
(WordNode  "US" )
(WordNode  "northamerica")
 (WordNode  ".we need a new channel trump tv!!.") 




   1. Do you mean something like this? How the input should be?   (i tried 
   giving it, but it says unbound variable "WordNode")
   2. If i have say for ex,  
  1. ((WordNode "US") (WordNode  "trump is a candidate") ) 
  2. ((WordNode "US") (WordNode  "trump tv") ) 
  3. ((WordNode "US") (WordNode  " trump wins ") ) 
  4. ((WordNode "US") (WordNode  " trump president?") )
   
   will it find that sentences that have "trump" always comes from 
US?(.. (wordNode "US") (WordNode "Trump")...).  

Any guidelines would be helpful 

Thanks in advance,
Vishnu



On Saturday, 10 September 2016 04:37:09 UTC+2, linas wrote:
>
> Hi,
>
> On Wed, Sep 7, 2016 at 4:57 AM,  
> wrote:
>
>>
>> I think, i should do the following (?!)
>>
>> write probably a python script that produces the following output for 
>> every json file:
>>
>> (EvaluationLink
>> (PredicateNode "sentence, location and body")
>> (ListLink
>>  (SentenceNode "an unique string ")
>>  (EvaluationLink
>>  (PredicateNode " coordinates, country, continent, body")
>>  (ListLink
>> (ConceptNode "-86.3222")
>> (ConceptNode  "32.3934") 
>> (ConceptNode  "US" )
>> (ConceptNode  "northamerica")
>>  (ConceptNode  ".we need a new channel trump
>>tv!!.) 
>>   .
>>   .
>>   . )))
>>
>>
>> Then i can give this to pattern miner. 
>>
>> Am i missing anything here?
>>
>
> Well, the pattern miner won't perform any parsing of the sentences for 
> you, so the most likely thing it will do is find that there's lots of 
> things with  (ConceptNode  "US" ) in them, and that this is highly 
> correlated with  (ConceptNode  "northamerica")  After that, it might find 
> patterns in the lat/log.  It does NOT do any string compares of the names 
> of any nodes.
>
> Unless you put at least WordNodes in there, you will get no text analysis.
>
> --linas
>  
>
>>
>>
>> Thanks in advance.
>>
>>
>>
>> On Tuesday, September 6, 2016 at 4:05:43 PM UTC+2, vishnup...@gmail.com 
>> wrote:
>>>
>>> Hello all,
>>>
>>> I have attached a small example Json file, which is generated from 
> twitter stream. I will be getting lots of Json chunks like this. How can 
> i 
> give this to pattern miner. i.e. can i convert it to hypergraph? What are 
> the steps involved?. what would be the best way to start with. 
>
 Any guidelines would be very much helpful. 

>>>
>>> Thanks in advance 
>>>
>>
>

-- 
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/1d8fdf2f-629e-4855-beb2-2feac08a37e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: opencog with crawled data

2016-09-10 Thread Ben Goertzel
You probably want to run a bunch of sentences through the full NLP
pipeline, including Relex and R2L, and then do pattern mining on the
set of logical-semantic patterns that result...



On Sat, Sep 10, 2016 at 10:36 AM, Linas Vepstas  wrote:
> Hi,
>
> On Wed, Sep 7, 2016 at 4:57 AM,  wrote:
>>
>>
>> I think, i should do the following (?!)
>>
>> write probably a python script that produces the following output for
>> every json file:
>>
>> (EvaluationLink
>> (PredicateNode "sentence, location and body")
>> (ListLink
>>  (SentenceNode "an unique string ")
>>  (EvaluationLink
>>  (PredicateNode " coordinates, country, continent, body")
>>  (ListLink
>> (ConceptNode "-86.3222")
>> (ConceptNode  "32.3934")
>> (ConceptNode  "US" )
>> (ConceptNode  "northamerica")
>>  (ConceptNode  ".we need a new channel trump
>>tv!!.)
>>   .
>>   .
>>   . )))
>>
>>
>> Then i can give this to pattern miner.
>>
>> Am i missing anything here?
>
>
> Well, the pattern miner won't perform any parsing of the sentences for you,
> so the most likely thing it will do is find that there's lots of things with
> (ConceptNode  "US" ) in them, and that this is highly correlated with
> (ConceptNode  "northamerica")  After that, it might find patterns in the
> lat/log.  It does NOT do any string compares of the names of any nodes.
>
> Unless you put at least WordNodes in there, you will get no text analysis.
>
> --linas
>
>>
>>
>>
>> Thanks in advance.
>>
>>
>>
>> On Tuesday, September 6, 2016 at 4:05:43 PM UTC+2, vishnup...@gmail.com
>> wrote:
>>>
>>> Hello all,
>>>
> I have attached a small example Json file, which is generated from
> twitter stream. I will be getting lots of Json chunks like this. How can i
> give this to pattern miner. i.e. can i convert it to hypergraph? What are
> the steps involved?. what would be the best way to start with.

 Any guidelines would be very much helpful.
>>>
>>>
>>> Thanks in advance
>
>
> --
> 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/CAHrUA35xEmMUgKyYVPqOufs-0LucDNCuNsoTmpGWgsrg29CcNg%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Ben Goertzel, PhD
http://goertzel.org

Super-benevolent super-intelligence is the thought the Global Brain is
currently struggling to form...

-- 
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/CACYTDBdaV2YN1txVweKPAFrcO98C0Dxh5odryeg7iK_foHXv1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: opencog with crawled data

2016-09-07 Thread vishnupriyaa31

I think, i should do the following (?!)

write probably a python script that produces the following output for every 
json file:

(EvaluationLink
(PredicateNode "sentence, location and body")
(ListLink
 (SentenceNode "an unique string ")
 (EvaluationLink
 (PredicateNode " coordinates, country, continent, body")
 (ListLink
(ConceptNode "-86.3222")
(ConceptNode  "32.3934") 
(ConceptNode  "US" )
(ConceptNode  "northamerica")
 (ConceptNode  ".we need a new channel trump
   tv!!.) 
  .
  .
  . )))


Then i can give this to pattern miner. 

Am i missing anything here?


Thanks in advance.



On Tuesday, September 6, 2016 at 4:05:43 PM UTC+2, vishnup...@gmail.com 
wrote:
>
> Hello all,
>
> I have attached a small example Json file, which is generated from twitter 
>>> stream. I will be getting lots of Json chunks like this. How can i give 
>>> this to pattern miner. i.e. can i convert it to hypergraph? What are the 
>>> steps involved?. what would be the best way to start with. 
>>>
>> Any guidelines would be very much helpful. 
>>
>
> Thanks in advance 
>

-- 
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/a80ceef8-d819-4049-9a9a-75e8676f0655%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: opencog with crawled data

2016-08-26 Thread Linas Vepstas
Oops I forgot to add the sentence node:

(EvaluationLink
(PredicateNode "sentencenode, timestamp, lat and long")
(ListLink
(SentenceNode "abc123-456-def")
(TimeNode "Fri Aug 26 18:18:56 CDT 2016")
(ConceptNode "51.9244° N")
(ConceptNode "4.4777° E")
))

But you could also do this:

(EvaluationLink
(PredicateNode "sentence and location")
(ListLink
 (SentenceNode "abc123-456-def")
 (EvaluationLink
 (PredicateNode "timestamp, lat and long")
 (ListLink
 (TimeNode "Fri Aug 26 18:18:56 CDT 2016")
(ConceptNode "51.9244° N")
   (ConceptNode "4.4777° E")
)))

which allows you to use the same location in multiple sentences.  You can
invent other formats too.

--linas

On Fri, Aug 26, 2016 at 6:25 PM, Linas Vepstas 
wrote:

>
>
> On Fri, Aug 26, 2016 at 8:36 AM,  wrote:
>
>>
>> Thanks Linas for your reply. Actaully, it guides me well !! :-)
>> One more question!
>>  My data has timestamps and latitude, longitude info along with text.  Is
>> it still possible to get the data into opencog?
>>
>
> Sure. You would have to write some new code to do this.  Every sentence is
> tagged with a SentenceNode to identify it. You would have to write some
> code to generate the following:
>
> (EvaluationLink
> (PredicateNode "timestamp, lat and long")
> (ListLink
> (TimeNode "Fri Aug 26 18:18:56 CDT 2016")
> (ConceptNode "51.9244° N")
> (ConceptNode "4.4777° E")
> ))
>
>
>
>> Can I still be able to convert that into .scm  file?
>>
>
> as above.
>
>
>>  Is Pattern Miner tailored to handle such data?
>>
>
> ? This is a non-sequiter question.   The pattern miner looks for patterns,
> in a very generic way.  Don't know what it might spot.   The above is just
> some arbitrary pattern.  Maybe the pattern miner will discover that a lot
> of your sentences that have certain words in them always come from the same
> latitude. Who knows.
>
> --linas
>
>
>>> Regards,
>>>
>> VishnuPriya
>>
>> --
>> 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/ms
>> gid/opencog/5188f4ef-2878-48bf-af13-a0e8847408ba%40googlegroups.com
>> 
>> .
>>
>> 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/CAHrUA341LA-33c-6%2Bhrus%3DQRhwX8wNLPj6TvrmhPDc1Pfv58Kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [opencog-dev] Re: opencog with crawled data

2016-08-26 Thread Linas Vepstas
On Fri, Aug 26, 2016 at 8:36 AM,  wrote:

>
> Thanks Linas for your reply. Actaully, it guides me well !! :-)
> One more question!
>  My data has timestamps and latitude, longitude info along with text.  Is
> it still possible to get the data into opencog?
>

Sure. You would have to write some new code to do this.  Every sentence is
tagged with a SentenceNode to identify it. You would have to write some
code to generate the following:

(EvaluationLink
(PredicateNode "timestamp, lat and long")
(ListLink
(TimeNode "Fri Aug 26 18:18:56 CDT 2016")
(ConceptNode "51.9244° N")
(ConceptNode "4.4777° E")
))



> Can I still be able to convert that into .scm  file?
>

as above.


>  Is Pattern Miner tailored to handle such data?
>

? This is a non-sequiter question.   The pattern miner looks for patterns,
in a very generic way.  Don't know what it might spot.   The above is just
some arbitrary pattern.  Maybe the pattern miner will discover that a lot
of your sentences that have certain words in them always come from the same
latitude. Who knows.

--linas


>> Regards,
>>
> VishnuPriya
>
> --
> 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/5188f4ef-2878-48bf-af13-a0e8847408ba%40googlegroups.com
> 
> .
>
> 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/CAHrUA372N0sEbGdtjQHv428rk4MKd59y-_smtQXWObUdfmiMqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.