d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Chat Ai
Prev134567Next
Add Reply New Topic New Poll
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Mar 18 2016 11:04am
Quote (Ideophobe @ Mar 18 2016 03:33am)
read the link i posted he's talking about useing a bayesian network for language processing using statement response

dont just look at the topics and see the word markov and think you've got it down


anyway your thread gave me an idea for a fun chatbot project of my own


Don't put words in my mouth you troll. You don't understand anything.

Bayesian networks are acyclic, directed graphs. Markov networks are cyclic, undirected graphs. Markov networks are a better representation of the problem because words in a sentence are not distinct. If your Bayesian network uses words as their nodes, then you could not construct a sentence which had a word more than once without potentially having cycles. Because then your graph would have to have a cycle. Take the previous sentence as an example. I used the word "have" twice. In a Bayesian network, this would mean the nodes have and to would form a cycle as demonstrated below.


Code
Because → then → your → graph → would →have ↔ to

a → cycle


This is not a directed acyclic graph. Which means it is not a bayesian network. You would have to duplicate the "have" node (and many others) if you wanted a bayesian network to work like this. Or, you could remove the data replication and not be able to generate sentences with the same word twice. This is why Markov networks are better. Because they are undirected cycle graphs. You can generate a markov chain of words which more closely resemble human speech patterns. Bayesian networks are used for plotting statistical representations of independent cause and effect relationships. Grammar does not fit that.

Please. PLEASE. Shut the fuck up. You are providing nothing of value to any conversation you are in. And if you are just trolling, all you are doing is making yourself look like an idiot.

This post was edited by Minkomonster on Mar 18 2016 11:14am
Member
Posts: 14,631
Joined: Sep 14 2006
Gold: 575.56
Mar 18 2016 12:54pm
ugh such a technicality why do i keep looking at this thread
you said you wanted to look at previous sentences not just go with an independent state
you're right you're going to have to duplicate the "have" node for any possible use of the word, in your model, with a directed model you simply say

would , could

go to
have
go to

1, 2, 3, 4

have only goes to 1 or 2 when preceded by would, only goes to 3 or 4 when preceded by could

if you don't direct it or take previous states into account you can go any fucking where

i'm not sure why you think that conditional independence and direction are unsuited for grammar or why you want to use an directed or cyclical process since one of the most basic rules of grammar are that subjects are followed by predicates but fuck man

all i fucking did was try to explain that he needs to use a goddamn graphical model instead of a chart i don't think either of these models will completely solve the problem

Quote (AbDuCt @ Mar 18 2016 07:45am)
That's good, post results ID love to bounce ideas off another person working on something similar.


it's not really similar at all tbh language processing output is way too much work
i want to do the opposite of what you're doing really and give a set 70 possible responses come only when relevent statements are read

This post was edited by Ideophobe on Mar 18 2016 01:22pm
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 18 2016 03:27pm
Quote (Ideophobe @ Mar 18 2016 02:54pm)

it's not really similar at all tbh language processing output is way too much work
i want to do the opposite of what you're doing really and give a set 70 possible responses come only when relevent statements are read


Then why reinvent the wheel, use chatscript or AIML.
Member
Posts: 14,631
Joined: Sep 14 2006
Gold: 575.56
Mar 18 2016 03:47pm
Quote (AbDuCt @ Mar 18 2016 03:27pm)
Then why reinvent the wheel, use chatscript or AIML.

pretty much what i'm doing
i'm going with pircbot api for java, it has any possible chatbot functionality i could need, with alot of cool extra features for a complete irc bot
i'll have to write all the line read logic myself i think for my idea to work but it should be pretty straight forward

This post was edited by Ideophobe on Mar 18 2016 03:55pm
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 18 2016 08:54pm
Quote (Ideophobe @ Mar 18 2016 05:47pm)
pretty much what i'm doing
i'm going with pircbot api for java, it has any possible chatbot functionality i could need, with alot of cool extra features for a complete irc bot
i'll have to write all the line read logic myself i think for my idea to work but it should be pretty straight forward


It is. I wrote a dynamic call back based irc bot framework a year ago. Easy stuff.
Member
Posts: 14,631
Joined: Sep 14 2006
Gold: 575.56
Mar 18 2016 09:17pm
Quote (AbDuCt @ Mar 18 2016 08:54pm)
It is. I wrote a dynamic call back based irc bot framework a year ago. Easy stuff.

http://www.sjtrek.com/trek/rules/
with some "Welcome to Qwarks" "what can i get ya" bartender talk to turn a channel into qwarks bar and quote rules of acquisition at people whenever they say relevant stuff
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 18 2016 10:16pm
Going to probably write a wrapper around cleverbot and mitsuku tomorrow so I can see if I can train a sentence based markov chain off them. I'll need to leave it running on my server for about a week I'd imagine before I can get any sort of tangable database setup to test with.
Member
Posts: 161,550
Joined: Oct 18 2006
Gold: 4.03
Warn: 20%
Mar 18 2016 10:45pm
Quote (AbDuCt @ Mar 18 2016 09:16pm)
Going to probably write a wrapper around cleverbot and mitsuku tomorrow so I can see if I can train a sentence based markov chain off them. I'll need to leave it running on my server for about a week I'd imagine before I can get any sort of tangable database setup to test with.


https://cleverbot.io/
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 18 2016 11:54pm
Is it possible to do some kind of fuzzy string matchi g in SQL? I know if you use the LIKE clause and the % operator, but I am not sure how I would attempt to chop the sentence up.

For example if I had "hello my name is abduct" a good fuzzy match would be "hello %", but how to logically convert one to the other is another thing.
Member
Posts: 62,215
Joined: Jun 3 2007
Gold: 9,039.20
Mar 19 2016 01:57am
Code
C:\Users\juandeag>python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import cleverbot
>>>
>>> cb = cleverbot.Cleverbot()
>>> cb.ask('Hi')
u'Hello.'
>>> cb.ask('What you up to?')
u"Nothin'."
>>> cb.ask('Faget')
u'From canada.'
>>>



Confirmed
Go Back To Programming & Development Topic List
Prev134567Next
Add Reply New Topic New Poll