AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

String-matching using trigrams
Goto page Previous  1, 2
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
forkinpm



Joined: 24 Jan 2009
Posts: 13
Location: Aldersbach, Germany

PostPosted: Sat Jun 12, 2010 1:34 pm    Post subject: String matching using nGrams Reply with quote

Hallo contributors to this topic!
I am in need of a similar search script for a dictionary and glossary I am constructing.
After having constructed the dictionary (English to German) based on my word usage on the desktop, I extended the concept to gather my "writing style" based on the use of ngrams related to the single word entries in the dictionary. So I built collections of 2grams, 3grams etc. The word usage concept and that of ngram phrases, from 2 to 5 words has allowed me to create the dictionary showing my writing style.
I mark up text with a scheme of phrase types including the number of words in each phrase.
Translating these from English to German says that the words in the phrase will all have the same singularity, gender and declension. There are some exceptions and the format allows me to cope with them. I now need a script which can find the word translations in such phrases as the following example:
[[Subj] [3] [s m nom]] The little boy
I wish to translate using my dictionary where each English word entry has the characteristics to define its role in a phrase.
Where the phrase has previously been stored, translated, in the dictionary, the entry will be shown as
[[EG nGram 3] [Subj] [3] [s m nom]] The little boy | Der kleine Junge.
Supporting the dictionary is a capable notation scheme I have also designed. It is this which copes with rules and exceptions.
I need, if I may ask for it, some help to create the script.
When it works I will share the model under my conditions.
My goal is to market the model and use the revenue to fund a welfare scheme for children.
There will be a variety of usage models resulting from the dictionary design.
Any help offers?
Regards, forkinpm.
_________________
I am building my platform based on a set of steps to take my English texts through segmenting into phrases, resequencing segments based on German rules, adding head-words and then translating with my dictionary.
Regards, forkinpm.
Back to top
View user's profile Send private message
samchn07



Joined: 07 Nov 2011
Posts: 1
Location: Jamaica, NY USA

PostPosted: Thu Dec 15, 2011 8:20 am    Post subject: Reply with quote

this is really a nice trick and i also observed that it shows something exactly what you want to express us! good!
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group