Adam's Lair Forum

game development and casual madness
It is currently 2019/07/24, 07:35

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2019/05/29, 04:28 
Newbie
Newbie
User avatar

Joined: 2019/01/02, 13:27
Posts: 4
Role: Hobbyist
Hi there... a while ago I got pointed to something and I finally have gotten around to trying ot test it but the links are all broken...

Adam wrote:
I briefly tested the concept at a local game jam where my goal was to start with a classic RPG / adventure game dialog tree, but hide the dialog tree from the player by requiring them to enter free form text when talking to the character. This makes no sense with strict text matching, but what I wondered was whether it could work when the matching was fuzzy enough to hit a positive on the rough meaning of a sentence. Honestly, it didn't really work that well - but it didn't completely not work either xD And there's a lot of space to still be explored here.

This is it in action:
Image

It's using this internal dialog tree, and as you can see it sometimes manages to find a good match despite input differences, but also sometimes fails doing so even though it was reasonably close.

And here are some word similarities based on the word vectors where I marked the ones with highest similarity scores:
Image

If you're interested to look into this later on, all the source code is online here, though it's not set up in a user-friendly, documented way, and you first need to download 10GB of pre-trained (not mine!) word vectors. Let me know if you need help setting it up at some point.


Basically, the GitHub is still there but the "vector database" is missing.

What I have been doing is reading in hand made synonym lists into a Dictionary<string, string>... Dictionary<synonym, command>

Then I can search for the key.. based on any word they use.. and if it finds that it is a synonym it converts it to a hardcoded command... behold = look, inspect = look (etc etc)... I am also using a "stemmer" to strip words down so behold, beheld, beholding etc should all boil down to the same "key".

This is basically a really crappy version of the vector thing... which I guess measures similarity and outputs a value, this value determines if it is a matching synonym.. . removing the need for me to source large word lists on my own.

Anyway.. if you know of a place I can get the vector data so I can get this code up and running to test, I would be appreciative.

_________________
My GameDev Blog @GameDev.net : Open Blog; Read Blog;
My uTube Chans : TragicTableTop : TragicDeskTop : AdventureReviews


Top
 Profile  
 
PostPosted: 2019/05/30, 14:42 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 2073
Location: Germany
Role: Professional
It appears they moved the pretrained vectors around within their repository. Here's the new link, will fix it in the repo as well. Thanks! :)

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group