I have now written a program to extract the wordnet subsets,
MERONYMS
HYPERNYMS
SYNONYMS
SISTERS
Definitions.
Into a DB.
well 5 mini 2 column dbs
Private Sub CMD_Read_meronyms_Click()
Dim wn As New WordNet
fileNAME = App.Path & "\" & txt_Filename.Text
LineNum = GetFileLength(fileNAME)
txtfileOUT.Text = LineNum
'Search file Line by line
' Lookup in word net
' get list of meronyms
' * TEMP : display list in output win
' remove ( )
' How many meronyms
' Get meronym 1 by 1
' update DB with NOUN (FROM FILE) & MERONYM FROM LIST
' return
For CurrentLine = 1 To LineNum
'Search file Line
Noun = C_ReadLINE(fileNAME, CurrentLine)
'Lookup in word net
'This points WN to your word "horse".
wn.LookupWord (Noun)
' get list of meronyms
List_Of_Meronyms = ""
List_Of_Meronyms = wn.GetMeronyms(1) & " " & wn.GetDefinition(wn.GuessPartOfSpeech, 1, "S")
' * TEMP : display list in output win
'txtfileOUT.Text = List_Of_Meronyms
' Get meronym 1 by 1
Do While List_Of_Meronyms <> ""
Meronym = C_GetFirstWord(List_Of_Meronyms, contents, ",")
' contents contains the rest of the list
If contents <> "" Then
List_Of_Meronyms = contents
Call DBMeronymUPDATE(Noun, Meronym)
Else
List_Of_Meronyms = ""
Meronym = ""
End If
Loop
Next
End Sub
currently a ms access db, this can now be cut and pasted across to the HAL6 DB.....
first i have a list of NOUNS in a text file, then the SUB searches the textfile line by line. looking up every word and extracting is *NYM and updating the DB TABLE accordingly, NOUN/MERONYM NOUN/HYPERNYM NOUN/SISTER etc.
a step towards Learning from a text file....
Next i will be concentrating on Learning new phrases from text files, as in writers when characters are Speaking;
"hello" said harry
" whats up said KIM"
there speech is contained within Speech MARKS. these Quotes could be stored as Potential QUESTION AND ANSWER phrases, AS WITH F.A.Q.
this will enable our hal's to learn from conversation logs from Other AI conversations, even POP STAR/ WWE interveiw transcripts or TV show "Lines" could be learned, as QUESTION AND ANSWER just for those guys with all questions ever asked to DATA on Star treK and Answers......
A Possiblity... A potential Charcter builder ( not Knowledge )