2 Pattern Miner questions

108 views
Skip to first unread message

Masayuki Hatta

unread,
May 5, 2018, 4:12:09 PM5/5/18
to opencog
Hi,

I'm now trying Pattern Miner following this Wiki page: https://wiki.opencog.org/w/Pattern_miner.  I have 2 questions.

1) Seems libPatternMinerAgent.so is built and working, but not installed under system directory (for Debian, it's /usr/lib/opencog) by default.  Is this intentional or a bug?  If it's a bug, I'll file an issue or maybe PR.

2) How can I change the n-gram parameter to, say, 3?  I put "Pattern_Max_Gram = 3" in cogserver.conf, but seems it ignores and always says like "Finished mining 1~1 gram patterns". and does only 1-gram.

Thanks for help,
MH

Nil Geisweiller

unread,
May 6, 2018, 3:05:29 AM5/6/18
to ope...@googlegroups.com
Hi,

On 05/05/2018 11:12 PM, Masayuki Hatta wrote:
> Hi,
>
> I'm now trying Pattern Miner following this Wiki page:
> https://wiki.opencog.org/w/Pattern_miner.  I have 2 questions.

this is the old pattern miner. A new pattern miner is being developed,
although it is still not as efficient as the old one in some respects,
it is already usable and more capable in general. However the user
interface is complicated (cause you need to properly set up the URE
https://wiki.opencog.org/w/Unified_rule_engine for it). I'm working on
simplifying that and a manual will follow shortly after.

I'll send a notification on the opencog list when it's user ready,
likely sometime next week.

Nil

>
> 1) Seems libPatternMinerAgent.so is built and working, but not installed
> under system directory (for Debian, it's /usr/lib/opencog) by default.
> Is this intentional or a bug?  If it's a bug, I'll file an issue or
> maybe PR.
>
> 2) How can I change the n-gram parameter to, say, 3?  I put
> "Pattern_Max_Gram = 3" in cogserver.conf, but seems it ignores and
> always says like "Finished mining 1~1 gram patterns". and does only 1-gram.
>
> Thanks for help,
> MH
>
> --
> 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
> <mailto:opencog+u...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto: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/4c804a2f-d845-435d-8e74-7136e0713024%40googlegroups.com
> <https://groups.google.com/d/msgid/opencog/4c804a2f-d845-435d-8e74-7136e0713024%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Shujing Ke

unread,
May 7, 2018, 7:09:12 AM5/7/18
to opencog
One thing you check is that if you started the cogserver using cogserver.conf or opencog_patternminer.conf. 
If you use below commands then   opencog_patternminer.conf is used.
username@xxxxx:~/opencog/build$ ./opencog/cogserver/server/cogserver -c ../lib/opencog_patternminer.conf

Also  those config files  are copied from  opencog/lib/  to the corresponding build folder. When no config file path is specified, the one in the build folder is actually used when you launch the cogserver.

On Sun, May 6, 2018 at 9:05 AM, 'Nil Geisweiller' via opencog <ope...@googlegroups.com> wrote:
Hi,

On 05/05/2018 11:12 PM, Masayuki Hatta wrote:
Hi,

I'm now trying Pattern Miner following this Wiki page: https://wiki.opencog.org/w/Pattern_miner.  I have 2 questions.

this is the old pattern miner. A new pattern miner is being developed, although it is still not as efficient as the old one in some respects, it is already usable and more capable in general. However the user interface is complicated (cause you need to properly set up the URE https://wiki.opencog.org/w/Unified_rule_engine for it). I'm working on simplifying that and a manual will follow shortly after.

I'll send a notification on the opencog list when it's user ready, likely sometime next week.

Nil


1) Seems libPatternMinerAgent.so is built and working, but not installed under system directory (for Debian, it's /usr/lib/opencog) by default.  Is this intentional or a bug?  If it's a bug, I'll file an issue or maybe PR.

2) How can I change the n-gram parameter to, say, 3?  I put "Pattern_Max_Gram = 3" in cogserver.conf, but seems it ignores and always says like "Finished mining 1~1 gram patterns". and does only 1-gram.

Thanks for help,
MH

--
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+unsubscribe@googlegroups.com <mailto:opencog+unsubscribe@googlegroups.com>.
To post to this group, send email to ope...@googlegroups.com <mailto:opencog@googlegroups.com>.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Nil Geisweiller

unread,
May 8, 2018, 4:07:02 AM5/8/18
to ope...@googlegroups.com, Masayuki Hatta
The new user API with some online help for the pattern miner is available

https://github.com/opencog/opencog/pull/3090

Now onto updating the wiki and the README.

Nil

On 05/05/2018 11:12 PM, Masayuki Hatta wrote:
> --
> 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
> <mailto:opencog+u...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto:ope...@googlegroups.com>.

Masayuki Hatta

unread,
May 10, 2018, 6:38:33 PM5/10/18
to opencog
Hi,

Thanks for comment.  I used opencog_patternminer_nlp.conf and still had problem, but somehow rebuilding opencog fixed this...

Best regards,
MH

2018年5月7日月曜日 20時09分12秒 UTC+9 shujingke:
One thing you check is that if you started the cogserver using cogserver.conf or opencog_patternminer.conf. 
If you use below commands then   opencog_patternminer.conf is used.
username@xxxxx:~/opencog/build$ ./opencog/cogserver/server/cogserver -c ../lib/opencog_patternminer.conf

Also  those config files  are copied from  opencog/lib/  to the corresponding build folder. When no config file path is specified, the one in the build folder is actually used when you launch the cogserver.
On Sun, May 6, 2018 at 9:05 AM, 'Nil Geisweiller' via opencog <ope...@googlegroups.com> wrote:
Hi,

On 05/05/2018 11:12 PM, Masayuki Hatta wrote:
Hi,

I'm now trying Pattern Miner following this Wiki page: https://wiki.opencog.org/w/Pattern_miner.  I have 2 questions.

this is the old pattern miner. A new pattern miner is being developed, although it is still not as efficient as the old one in some respects, it is already usable and more capable in general. However the user interface is complicated (cause you need to properly set up the URE https://wiki.opencog.org/w/Unified_rule_engine for it). I'm working on simplifying that and a manual will follow shortly after.

I'll send a notification on the opencog list when it's user ready, likely sometime next week.

Nil


1) Seems libPatternMinerAgent.so is built and working, but not installed under system directory (for Debian, it's /usr/lib/opencog) by default.  Is this intentional or a bug?  If it's a bug, I'll file an issue or maybe PR.

2) How can I change the n-gram parameter to, say, 3?  I put "Pattern_Max_Gram = 3" in cogserver.conf, but seems it ignores and always says like "Finished mining 1~1 gram patterns". and does only 1-gram.

Thanks for help,
MH

--
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 <mailto:opencog+u...@googlegroups.com>.
To post to this group, send email to ope...@googlegroups.com <mailto:ope...@googlegroups.com>.
--
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.

Masayuki Hatta

unread,
May 10, 2018, 6:42:57 PM5/10/18
to opencog
Hi Nil,

I'm now trying your new miner, but got

scheme@(guile-user)> (use-modules (opencog miner))
scheme@
(guile-user)> (help cog-miner)
Did not find any object named `cog-miner'

Am I missing something?

Best regards,
MH

2018年5月8日火曜日 17時07分02秒 UTC+9 Nil:

Linas Vepstas

unread,
May 10, 2018, 6:48:35 PM5/10/18
to opencog
I can confirm that:

Enter `,help' for help.
scheme@(guile-user)> (use-modules (opencog))
scheme@(guile-user)> (use-modules (opencog miner))
scheme@(guile-user)> ,apropos miner
(opencog miner): configure-miner    #<procedure configure-miner (pm-rbs #:key maxiter)>
(opencog miner): random-miner-rbs-cpt    #<procedure random-miner-rbs-cpt ()>
scheme@(guile-user)>

--linas


To unsubscribe from this group and stop receiving emails from it, send an email to opencog+unsubscribe@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
cassette tapes - analog TV - film cameras - you

Nil Geisweiller

unread,
May 10, 2018, 11:50:01 PM5/10/18
to opencog
Sorry, it's actually cog-mine, not cog-miner

An improved API + README is coming soon, BTW.

Nil

On 05/11/2018 01:48 AM, Linas Vepstas wrote:
> I can confirm that:
>
> Enter `,help' for help.
> scheme@(guile-user)> (use-modules (opencog))
> scheme@(guile-user)> (use-modules (opencog miner))
> scheme@(guile-user)> ,apropos miner
> (opencog miner): configure-miner    #<procedure configure-miner (pm-rbs
> #:key maxiter)>
> (opencog miner): random-miner-rbs-cpt    #<procedure
> random-miner-rbs-cpt ()>
> scheme@(guile-user)>
>
> --linas
>
>
> On Thu, May 10, 2018 at 5:42 PM, Masayuki Hatta <mha...@gmail.com
> <mailto:mha...@gmail.com>> wrote:
>
> Hi Nil,
>
> I'm now trying your new miner|, but got
> |
> |
> scheme@(guile-user)>(use-modules (opencog miner))
> scheme@(guile-user)>(help cog-miner)
> Didnotfind any objectnamed `cog-miner'
> |
>
> |Am I missing something?
>
> |Best regards,
> MH
>
> 2018年5月8日火曜日 17時07分02秒 UTC+9 Nil:
>
> The new user API with some online help for the pattern miner is
> available
>
> https://github.com/opencog/opencog/pull/3090
> <https://github.com/opencog/opencog/pull/3090>
>
> Now onto updating the wiki and the README.
>
> Nil
>
> On 05/05/2018 11:12 PM, Masayuki Hatta wrote:
> > Hi,
> >
> > I'm now trying Pattern Miner following this Wiki page:
> > https://wiki.opencog.org/w/Pattern_miner
> <https://wiki.opencog.org/w/Pattern_miner>.  I have 2 questions.
> >
> > 1) Seems libPatternMinerAgent.so is built and working, but not installed
> > under system directory (for Debian, it's /usr/lib/opencog) by default.
> > Is this intentional or a bug?  If it's a bug, I'll file an issue or
> > maybe PR.
> >
> > 2) How can I change the n-gram parameter to, say, 3?  I put
> > "Pattern_Max_Gram = 3" in cogserver.conf, but seems it ignores and
> > always says like "Finished mining 1~1 gram patterns". and does only 1-gram.
> >
> > Thanks for help,
> > MH
> >
> > --
> > 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
> > <mailto:opencog+u...@googlegroups.com>.
> > To post to this group, send email to ope...@googlegroups.com
> > <mailto:ope...@googlegroups.com>.
> > Visit this group at https://groups.google.com/group/opencog
> <https://groups.google.com/group/opencog>.
> > <https://groups.google.com/d/msgid/opencog/4c804a2f-d845-435d-8e74-7136e0713024%40googlegroups.com?utm_medium=email&utm_source=footer
> <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+u...@googlegroups.com
> <mailto:opencog+u...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto:ope...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/opencog
> <https://groups.google.com/group/opencog>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/opencog/5fc96186-d81a-46b1-9365-8576f09cc31b%40googlegroups.com
> <https://groups.google.com/d/msgid/opencog/5fc96186-d81a-46b1-9365-8576f09cc31b%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
> --
> cassette tapes - analog TV - film cameras - you
>
> --
> 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
> <mailto:opencog+u...@googlegroups.com>.
> To post to this group, send email to ope...@googlegroups.com
> <mailto: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/CAHrUA34%3DkzA%2B2jQSkm9nEpvH4o-Ku3kycnLyezqPvDcWdew8rQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/opencog/CAHrUA34%3DkzA%2B2jQSkm9nEpvH4o-Ku3kycnLyezqPvDcWdew8rQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Nil Geisweiller

unread,
May 11, 2018, 12:20:53 AM5/11/18
to opencog
Reply all
Reply to author
Forward
0 new messages