AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Eliza chatbot code8/24/2023 ![]() When you refresh your browser in Code Collaborator you should see Eliza's comment. Eliza is a rule-based expert system that analyzes input and responses by rules, and is regarded as the first chatbot, so plays an important role in the history. The script will loop until you mark the Defect fixed or deleted, or finish the Review. "How do you do. Please state your problem." -file "SymlinkTest.java" -line-number 73 Running ccollab -url -quiet -non-interactive admin review comment create 1234 ELIZA does not have a machine learning engine to support learning on its own but the community has had the time to bring modifications to its open source code. Note that some of those have been altered or improved over time. How do you do. Please state your problem. Many other websites offer alternative versions of ELIZA. ![]() InputChat = Created Defect D11: Hello Eliza? First create a Review and create a Defect in the Review with the word "Eliza" in it, then run the script.įor example, if you created Review 1234 with Defect D5678, then run the script with this command: Be sure to log in to your server machine as the user which is running the Code Collaborator server. The script needs to be readable by the system user which is running the Code Collaborator server.īefore you configure the Code Collaborator server to invoke the script automatically, test it manually by opening a console on your server machine running it on the command-line. Don't forget to replace the constants in the script (url, user, password) with the appropriate values for your environment, then copy the script to an accessible place on your server. That's our whole script! Here it is in finished form:. Step 11: Test the script from the command-line The bot is named Pixel which is a basic chatbot that resembles the original chatbot ELIZA programmed using the Functional Programing Language LISP. $pid = open2(*CCOLLAB_OUTPUT, *XSL_INPUT, "ccollab $ccollabOptions admin review-xml $reviewId -xsl-file -") Ĭhomp(($spacer, $reviewPhase, $defectStatus, $defectText, $author, $inputChat, $filePath, $lineNumber) = ) Eliza-Chatbot A clone of the original Eliza chatbot. # Query Code Collaborator server for info The output is then parsed to get the Review Phase, Defect status, Defect text, comment Author, comment text, and optionally file path and line number. The script invokes the ccollab admin review-xml command, passing in the XSL created in Step 3 on STDIN. Script Step 6: Query Code Collaborator server for info #xslt file we will use to extract info from Code Collaborator The XSL is inlined in the Perl script using "here-document" syntax. ![]() To do that more efficiently it uses an XSL Transform to extract everything in a single call to ccollab admin review-xml ( Step 6). The script needs to extract multiple pieces of information from the Code Collaborator server.
0 Comments
Read More
Leave a Reply. |