亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? alife.ctl

?? 基于Web頁面的人工智能控件例證 [VB源碼]
?? CTL
?? 第 1 頁 / 共 4 頁
字號:
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.UserControl ALife 
   BackStyle       =   0  'Transparent
   ClientHeight    =   4500
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   7500
   ScaleHeight     =   300
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   500
   Begin VB.TextBox txtInput 
      BackColor       =   &H00FFFFFF&
      Height          =   285
      Left            =   120
      TabIndex        =   0
      Top             =   4080
      Width           =   7215
   End
   Begin RichTextLib.RichTextBox dspHCI 
      Height          =   3855
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   7215
      _ExtentX        =   12726
      _ExtentY        =   6800
      _Version        =   393217
      BackColor       =   14737632
      ReadOnly        =   -1  'True
      ScrollBars      =   3
      RightMargin     =   12000
      TextRTF         =   $"ALife.ctx":0000
   End
End
Attribute VB_Name = "ALife"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
'Mind.VB
'
'Translated by:
'   Rick Boardman
'   http://www.NetBotics.com
'   contact@netbotics.com
'
'About the translation:
'   This program is a translation from Mind.Forth
'   I have tried to keep the translation as pure
'   as possible for the initial release of Mind.VB
'
'Translated version:
'   Translation from Forth code release 1feb2Ka.f
'   http://www.geocities.com/Athens/Agora/7256/mind4th.html
'
'Credits:
'   Original concepts and Forth code are credited to
'   Arthur T Murray with contributions from
'   Jeff Fox
'
'   Special thanks goes out to all those who helped
'   a Forth newbie at comp.lang.forth
'

'Declare public variables
Dim lclActivation As Integer
Dim lclAttention As Integer
Dim lclBeginning As Integer
Dim lclBig As Integer
Dim lclBlankTime As Integer
Dim lclContinuation As Integer
Dim lclEnglishLexicon As Integer
Dim lclEndOfText As Integer
Dim lclFiber As Integer
Dim lclFiberOut As Integer
Dim lclFiberIn As Integer
Dim lclGrammarCategory As Integer
Dim lclHits As Integer
Dim lclIndex As Integer
Dim lclLength As Integer
Dim lclConcept As Integer
Dim lclMidway As Integer
Dim lclBestWord As Integer
Dim lclMoveTag As Integer
Dim lclEnglishLexiconConceptNumber As Integer
Dim lclNaturalLanguageProcessing As Integer
Dim lclNotLaterThan As Integer
Dim lclOnset As Integer
Dim lclOption As Integer
Dim lclParse As Integer
Dim lclPhoneme As Integer
Dim lclPartOfSpeech As Integer
Dim lclPrevious As Integer
Dim lclPreviousGrammarCategory As Integer
Dim lclQuota As Integer
Dim lclRecallVector As Integer
Dim lclSource As Integer
Dim lclSubsequent As Integer
Dim lclSpy As Integer
Dim lclTime As Integer
Dim lclTimeDecrement As Integer
Dim lclTimeStringEffect As Integer
Dim lclTimeUltimate As Integer
Dim lclTimveOfVoice As Integer
Dim lclUnknown As Integer
Dim lclUltimateTag As Integer
Dim lclRunning As Boolean   'flag to show if AI is running or not.

Type tEar   'Auditory memory channel array
    Unknown As Integer
    Activation As Integer
    Beginning As Integer
    Continuation As Integer
    UltimateTag As Integer
    Source As Integer
End Type

Type tPSI   'Primitive concept array
    Fiber As Integer
    Activation As Integer
    Previous As Integer
    EnglishLexicon As Integer
    Subsequent As Integer
    NaturalLanguageProcessing As Integer
End Type

Type tEN    'English lexicon
    MoveTag As Integer
    Activation As Integer
    GrammarCategory As Integer
    FiberIn As Integer
    FiberOut As Integer
    RecallVector As Integer
End Type

Dim lclEar() As tEar
Dim lclPSI() As tPSI
Dim lclEN() As tEN

Private Sub UserControl_Initialize()
    lclRunning = False
    
    Display_Message "Welcome to Mind.VB!" & vbCrLf
    Display_Message vbCrLf & "There is no warranty for what this software does."
    Display_Message vbCrLf & vbCrLf & "If this is your first time, enter .help"
End Sub

'ALife is the main program loop of Mind.VB AI.
Public Sub ALife()
    lclRunning = True
    
    Set_Defaults    'sets initial defaults that Mind.Forth did in declaration
    
    lclBlankTime = lclTime
    lclSpy = 49
    
    Display_Message vbCrLf & "(Clearing Memory...)"
        
    Tabularasa  'to erase all memory arrays
    Bootstrap   'to load some initial concepts
    
    Do
        DoEvents
        
        If lclTime > 200 Then
            lclMidway = lclTime - 200   'for a range limit on searches
        Else
            lclMidway = 0
        End If
        
        Decay
        Transformation  'to choose a Chomskyan syntactic structure
        Decay
        Autonomy    'for independent operation, if no input
        
        If lclAttention = -1 Then   'while in attention mode, do the following
            lclBlankTime = lclTime  'keep track of moment before input
            
            Display_Message vbCrLf
            
            lclSource = 43  'ascii 43 = "+" to designate "source" as external.
            
            Display_Message vbCrLf & "User:" & Chr(9)   'a prompt for the user to type in a sentence
                        
            lclParse = 1    'expect a noun or pronoun
            
            Sensorium   'for sensory input from the environment
            
        End If
        
        If lclRunning = False Then
            Display_Message vbCrLf & "Killed on command "
            
            Exit Do
        End If
        
        If lclTime > 999 Then
            Display_Message vbCrLf & "Program timed out at 999 "
                        
            Exit Do
        End If
    Loop
End Sub

'Autonomy is the auto-pilot mode of stand-alone AI.
Sub Autonomy()
    'Display_Message vbCrLf & vbCrLf & " Press TAB for user input, or ESC to quit:"
    
    For lclI = 1 To 75
        DoEvents
        
        'Display_Message "." 'display a series of dots....
        
        'lclUnknown = Get_Key
        
        'lclAttention = -1
        
        'If lclUnknown = 27 Then
        '    Display_Message vbCrLf & " Halt. "
        '
        '    End
        'End If
        
        'If lclUnknown = 9 Then
            'Display_Message vbCrLf & vbCrLf & " Autonomy: Interruption by user."
        If txtInput.Text <> "" Or txtInput.Tag <> "" Then
            HCI
            
            Exit For
        End If
    Next
    
    'Display_Message vbCrLf
    
    lclUnknown = 0
    
    'return to the main program loop ALife
End Sub

'HCI is the human-computer interface of VB.Forth AI.
Sub HCI()
    'lclUnknown = 0  'remove whatever value rode in here
    
    'If lclSpy > 49 Then
    '    Display_Echo    'after diagnostic blur, show I/O
    'End If
    
    'Display_Message vbCrLf & vbCrLf & " HCI: Please enter a diagnostic level from 1 to 9."
    'Display_Message vbCrLf & "  For instance, 1 (no diagnostics) or 2 (troubleshooting)."
    'Display_Message vbCrLf & "  Enter subject + transitive verb + object (no punctuation)."

    'lclUnknown = Get_Key
    
    'If lclUnknown = 27 Then
    '    Display_Message vbCrLf & " Halt."
    '
    '    End
    'End If
    
    While txtInput.Text <> ""
        DoEvents
    Wend
    
    If Mid(txtInput.Tag, 1, 1) = "." Then
        Select Case UCase(Mid(txtInput.Tag, 2, 2))
            Case "AB"
                Display_About
            Case "HE"
                Display_Help
            Case "LI"
                txtInput.Tag = ""
                
                ALife
            Case "SP"
                txtInput.Tag = Replace(UCase(txtInput.Tag), "SPY", "")
                
                lclSpy = Asc(Trim(txtInput.Tag))
            Case "EC"
                Display_Echo
            Case "EA"
                Display_Ear
            Case "EN"
                Display_EN
            Case "PS"
                Display_PSI
            Case "KI"
                lclAttention = 0
                lclRunning = False
        End Select
        
        txtInput.Tag = ""
    Else
        lclAttention = -1
    End If
    
    'lclSpy = lclUnknown

    'return to the Autonomy subroutine
End Sub

'Transformation calls a Chomskyan syntax structure.
Sub Transformation()
    Discriminate    'to pick and choose among active concepts
    
    'if no verb, push into Activate + SpreadAct to force a verb:
    
    lclMoveTag = lclConcept
    
    If lclNaturalLanguageProcessing <> 8 Then
        If lclSpy = 50 Then
            Display_Message "Xf. 1st call to Activate "
        End If
        
        lclAttention = -1
        
        SpreadAct
            
        lclMoveTag = 0
        lclAttention = 0
            
        Discriminate    'to search again
    End If
        
    lclMoveTag = lclConcept
    
    If lclNaturalLanguageProcessing <> 8 Then
        If lclSpy = 50 Then
            Display_Message "Xf. 2nd call to Activate "
        End If
        
        lclAttention = -1
        
        SpreadAct
        
        lclMoveTag = 0
        lclAttention = 0
        
        Discriminate    'to search again
    End If
    
    lclMoveTag = lclConcept
    
    'if the meme (concept) is an 8 (verb), run it through Activate + SpreadAct
    'in order to accentuate the activation of the subject:
    
    If lclNaturalLanguageProcessing = 8 Then    'if no verb on the 3rd try, never mind
        If lclSpy = 50 Then
            Display_Message "Xf. verb ! Call Activate "
        End If
        
        lclAttention = -1
        
        SpreadAct
        
        lclMoveTag = 0
        lclAttention = 0
    End If
    
    lclActivation = 0
    
    English 'that is, the syntactic structure of English
    
    'return to the main ALife loop
End Sub

'Discriminate "squeezes out" subjects, verbs, etc.
Sub Discriminate()
    If lclSpy = 50 Then
        Display_Message vbCrLf & "Discriminate: Active concept = "
    End If
    
    lclActivation = 0
    lclUnknown = 1
    
    For lclI = lclTime + 1 To lclMidway Step -1
        DoEvents
        
        If lclPSI(lclI).Activation > lclUnknown Then    'if psi Activation is larger...
            lclActivation = lclPSI(lclI).Activation '...hold the Activation level
            lclConcept = lclPSI(lclI).Fiber '...hold the meme (Concept)
            lclPrevious = lclPSI(lclI).Previous '...hold its Previous?
            lclSubsequent = lclPSI(lclI).Subsequent '...hold its Subsequent"
            lclNaturalLanguageProcessing = lclPSI(lclI).NaturalLanguageProcessing   '...hold its part-of-speech
        End If
        
        lclUnknown = lclActivation  'next use Activation as the higher standard
    Next    'with each loop, possibly find a higher Activation
    
    If lclSpy = 50 Then
        Display_Message lclConcept
    End If
    
    'return to Transformation
End Sub

'English is the syntax of an English sentence.
Sub English()
    If lclSpy = 50 Then
        Display_PSI
        
        'Display_Message " Press RETURN "
        '
        'Key
    End If
    
    lclAttention = 0    'turns off "attention" during reentry mode
    lclTimeOfVoice = lclTime    'store current "time" as time-of-voice for Display_Echo
    
    'the AI fills in the next line by generating a thought:
    Display_Message vbCrLf & "Robot:" & Chr(9)
    
    Subject 'finds "le mot jeste" (BestWord) to be the subject
    
    Predicate   'finds "le mot jeste" for verb and for object
    
    lclMoveTag = lclBestWord    'so that Retro will invoke OldConcept
    lclUnknown = 13 'ASCII 13 (CR) to trip a call of Retro
    
    Sensorium
    
    'return to the Transformation module.
End Sub

'Predicate assembles a phrase of verb plus object.
Sub Predicate()
    lclOptions = 8
    lclUnknown = 0
    lclMoveTag = 0
    lclBestWord = 0
    lclParse = 2
    
    FlushVector 'to move deep concepts up to English "EN()"
    
    If lclSpy > 50 Then
        Display_Message vbCrLf & Chr(9) & "Predicate: "
    End If
    
    For lclI = lclTime To lclMidway Step -1
        DoEvents
        
        If lclEN(lclI).Activation > 0 Then  'if EN Activation is positive
            lclActivation = lclEN(lclI).Activation  'then store the Activation level
            
            If lclEN(lclI).GrammarCategory = 8 Then 'a verb?
                If lclActivation > lclUnknown Then
                    lclMoveTag = lclEN(lclI).MoveTag    'move-tag of item
                    lclRecallVector = lclEN(lclI).RecallVector  'auditory recall-vector
                    lclUnknown = lclActivation  'to test for an even higher Activation
                    lclBestWord = lclMoveTag
                    
                    If lclSpy > 50 Then
                        Display_Message vbCrLf & Chr(9) & "Predicate: most active a " & lclActivation & " is for mt " & lclMoveTag & " with rv " & lclRecallVector
                    End If
                End If
            End If
        End If
    Next

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
《视频一区视频二区| 亚洲丝袜自拍清纯另类| 懂色av中文一区二区三区| 亚洲综合色婷婷| www国产精品av| 欧美影片第一页| 成人永久免费视频| 免费在线观看精品| 一个色在线综合| 国产欧美一区二区精品久导航| 欧美视频一区二区| 成人午夜激情片| 欧美三级电影在线看| 国产福利一区二区三区视频在线| 亚洲高清三级视频| 成人欧美一区二区三区黑人麻豆 | 国产精品久久久久婷婷| 欧美一区二视频| 欧美三区免费完整视频在线观看| 国产69精品久久99不卡| 麻豆精品一区二区综合av| 亚洲高清视频在线| 亚洲精品视频在线看| 国产精品三级av| 国产亲近乱来精品视频| 亚洲精品一区二区三区福利| 欧美男男青年gay1069videost | 56国语精品自产拍在线观看| 一本久久a久久精品亚洲| 国产不卡在线一区| 国产精品1区2区3区| 久久99久久精品| 老司机午夜精品| 青青草精品视频| 天天影视网天天综合色在线播放| 亚洲一区二区三区免费视频| 亚洲精品国产高清久久伦理二区| 国产精品福利电影一区二区三区四区| 久久久精品tv| 久久久三级国产网站| 2欧美一区二区三区在线观看视频| 91精品国产欧美一区二区成人| 在线电影院国产精品| 欧美日韩一区三区四区| 中文字幕第一区第二区| 欧美国产视频在线| 亚洲欧洲国产日本综合| 亚洲欧美日韩中文字幕一区二区三区 | 日韩午夜中文字幕| 日韩欧美中文一区| 欧美精品一区二区三区久久久| 欧美一二三在线| 亚洲精品一区二区三区影院| 久久婷婷成人综合色| 欧美极品aⅴ影院| 国产精品初高中害羞小美女文 | 免费欧美在线视频| 老司机午夜精品99久久| 国产精品一二三| 成人精品一区二区三区四区| 91亚洲精品一区二区乱码| 在线免费一区三区| 欧美日韩三级一区| 日韩精品中文字幕一区| 欧美国产一区二区| 一区二区三区高清在线| 青草国产精品久久久久久| 精品一区二区三区久久| jizzjizzjizz欧美| 欧美无乱码久久久免费午夜一区| 欧美一区欧美二区| 国产精品美女久久久久久久久久久| 亚洲色图在线播放| 秋霞成人午夜伦在线观看| 国产一区二区三区免费在线观看| a美女胸又www黄视频久久| 欧美视频在线观看一区| 精品国产一区二区三区不卡 | 99精品国产视频| 欧美日韩免费一区二区三区视频| 日韩欧美国产综合| 亚洲欧洲三级电影| 视频一区视频二区中文字幕| 国产精品系列在线播放| 色哟哟一区二区在线观看| 欧美成人精品福利| 日韩理论片在线| 久久99久久99小草精品免视看| 99精品欧美一区二区三区综合在线| 亚洲男人的天堂在线观看| 午夜精品一区在线观看| 成人综合婷婷国产精品久久免费| 欧美在线观看视频一区二区三区| 精品美女一区二区| 亚洲一区二区三区四区在线 | 久久99国内精品| 色播五月激情综合网| 亚洲精品在线电影| 亚洲电影视频在线| av电影一区二区| 欧美变态tickling挠脚心| 艳妇臀荡乳欲伦亚洲一区| 国产精品综合av一区二区国产馆| 欧美日韩久久不卡| 国产精品久久久一区麻豆最新章节| 奇米色一区二区| 色婷婷久久综合| 国产亚洲欧美在线| 日本中文字幕一区二区有限公司| 99久久综合精品| 久久久亚洲国产美女国产盗摄| 婷婷国产在线综合| 在线视频欧美精品| 亚洲欧美日韩久久| 成人午夜激情在线| 久久久久久久综合狠狠综合| 日韩精品福利网| 欧美色男人天堂| 亚洲欧美日韩小说| 99re成人精品视频| 国产精品三级视频| 国产成人在线视频免费播放| 日韩精品最新网址| 免费欧美日韩国产三级电影| 欧美色电影在线| 亚洲午夜激情网站| 国产精品女上位| 国产精品一区在线观看乱码| 欧美成人一区二区| 久久99日本精品| 日韩欧美一区二区在线视频| 视频一区二区三区在线| 欧美性猛交一区二区三区精品| 亚洲欧美乱综合| 一本大道久久精品懂色aⅴ| 日韩一区在线看| 99久久er热在这里只有精品15 | 亚洲一区二区三区四区五区中文 | 欧美日韩国产中文| 亚洲国产精品影院| 欧美视频完全免费看| 亚洲成人动漫一区| 这里只有精品视频在线观看| 日韩精品91亚洲二区在线观看 | 国产精品视频一二三| 成人深夜在线观看| 18欧美亚洲精品| 色综合夜色一区| 亚洲综合在线观看视频| 欧美性猛交一区二区三区精品| 亚洲小少妇裸体bbw| 欧美日韩一区不卡| 日本v片在线高清不卡在线观看| 日韩欧美一级二级| 国产一区二区三区观看| 免费成人在线网站| 精品999在线播放| 高清shemale亚洲人妖| 中文字幕日韩精品一区| 欧美艳星brazzers| 蜜臀av一区二区| 久久精品一区二区三区av| eeuss鲁片一区二区三区 | 精品国产乱子伦一区| 国产99精品国产| 亚洲免费毛片网站| 91麻豆精品国产自产在线| 黄页网站大全一区二区| 中文字幕在线不卡| 欧美精品 国产精品| 国产精品一区免费在线观看| 综合久久久久综合| 日韩亚洲电影在线| 本田岬高潮一区二区三区| 亚洲国产精品影院| 久久精品亚洲麻豆av一区二区| 一本久道中文字幕精品亚洲嫩| 人人狠狠综合久久亚洲| 国产精品视频第一区| 欧美日韩1区2区| 国产福利一区二区三区视频| 一区二区三区色| 精品国产a毛片| 日本精品免费观看高清观看| 另类成人小视频在线| 亚洲日本电影在线| 欧美成人精品1314www| 色诱亚洲精品久久久久久| 久久国产精品无码网站| 亚洲欧美偷拍另类a∨色屁股| 日韩欧美激情一区| 在线观看日韩av先锋影音电影院| 九九**精品视频免费播放| 成人污视频在线观看| 午夜视频一区二区三区| 国产精品青草久久| 精品久久人人做人人爰| 日本精品视频一区二区| 国产成人综合在线观看| 日本va欧美va欧美va精品|