![]() |
Pages (5): « 1 [2] 3 4 5 » Show 150 posts per page |
.dsy:it. (http://www.dsy.it/forum/)
- Informatica applicata alla comunicazione scritta (http://www.dsy.it/forum/forumdisplay.php?forumid=275)
-- PROGRAMd (http://www.dsy.it/forum/showthread.php?threadid=26404)
code:
C:\Documents and Settings\Alessio>c:\programd\bin\simple-console [17:30:42] Starting Program D version 4.5. [17:30:42] Using Java VM 1.5.0_07-b03 from Sun Microsystems Inc. [17:30:42] On Windows XP version 5.1 (x86) with 1 processor(s) available. [17:30:42] 246,7 MB of memory free out of 254,1 MB total in JVM. Configured maximum: 508,1 MB. [17:30:42] Predicates with no values defined will return: "undefined". [17:30:42] Initializing FlatFileMultiplexor. [17:30:42] Starting up the Graphmaster. [17:30:42] Configuring bot "yourbot". [17:30:42] Loaded 287 input substitutions. [17:30:42] Loaded 19 gender substitutions. [17:30:42] Loaded 9 person substitutions. [17:30:42] Loaded 60 person2 substitutions. [17:30:42] Loaded 4 sentence-splitters. [17:30:42] 103 unique categories loaded in 0.578 seconds. [17:30:42] The AIML Watcher is not active. [17:30:42] JavaScript interpreter not started. <------------------------------------- [17:30:42] ale-pc> CONNECT : * : * : yourbot [17:30:42] Match: CONNECT : * : * : yourbot [17:30:42] Filename: "../resources/testing/AIML.aiml" [17:30:42] Response 1 in 0 ms. (Average: 0.0 ms.) [17:30:42] Interactive shell: type "/exit" to shut down; "/help" for help. [17:30:42] [YourBot] user> inverti ciao cane [17:30:52] ale-pc> inverti ciao cane : Connected to test case AIML set : * : yourbot [17:30:52] Match: INVERTI * : * : * : yourbot [17:30:52] Filename: "../aiml/esercizi.aiml" [17:30:52] Use of <javascript> prohibited! <------------------------------------- [17:30:52] Response 2 in 16 ms. (Average: 8.0 ms.) [17:30:52] YourBot> [17:30:52] [YourBot] user>
ma fai caricare il file con la funzione inverti direttamente all'avvio della console?
Io ho lasciato la configurazione originale, ho solo cambiato il file bots.xml con Bots.xml preso da http://www.aiml4all.org.
poi ho creato un file prova.aiml con il codice che ho postato e l'ho salvato nella cartella aiml precedentemente creata in c:/ProgramD/
quindi avvio la console, carico il file ( /load aiml\prova.aiml ) e quindi provo la funzione INVERTI stringa
così funziona!
code:
C:\ProgramD\bin>simple-console [2006-07-04 17:58:22,625] INFO: Starting Program D version 4.6. [2006-07-04 17:58:22,625] INFO: Using Java VM 1.5.0_07-b03 from Sun Microsystems Inc.. [2006-07-04 17:58:22,625] INFO: Running on Windows XP version 5.1 (x86) with 2 p rocessors available. [2006-07-04 17:58:22,625] INFO: 118,1 MB of memory free out of 126,3 MB total in JVM (8,1 MB used). Configured maximum: 246,6 MB. [2006-07-04 17:58:22,625] INFO: Predicates with no values defined will return: " undefined". [2006-07-04 17:58:22,625] INFO: Initializing FlatFileMultiplexor. [2006-07-04 17:58:22,625] INFO: Initializing org.aitools.programd.interpreter.Rh inoInterpreter. [2006-07-04 17:58:22,640] INFO: The AIML Watcher is active. [2006-07-04 17:58:22,640] INFO: Starting up the Graphmaster. [2006-07-04 17:58:22,640] INFO: Loading "file:/C:/ProgramD/conf/bots.xml". [2006-07-04 17:58:22,656] INFO: Configuring bot "SampleBot". [2006-07-04 17:58:22,671] INFO: Loaded 7 input substitutions. [2006-07-04 17:58:22,671] INFO: Configured testing. [2006-07-04 17:58:22,671] INFO: Loading file:/C:/ProgramD/conf/.... [2006-07-04 17:58:22,781] WARN: Error parsing "file:/C:/ProgramD/conf/": Content is not allowed in prolog. Content is not allowed in prolog. [2006-07-04 17:58:22,796] INFO: 0 categories loaded in 0,1250 seconds. [2006-07-04 17:58:22,796] INFO: 0 total categories currently loaded. [2006-07-04 17:58:22,843] INFO: 125,0 MB of memory free out of 126,3 MB total in JVM (1,3 MB used). Configured maximum: 246,6 MB. [2006-07-04 17:58:22,875] WARN: No match found for path "CONNECT". [2006-07-04 17:58:22,875] INFO: -winxppro- -> SampleBot: "CONNECT"; SampleBot -> -winxppro-: "" Interactive shell: type "/exit" to shut down; "/help" for help. [Motore Inferenziale] user> /load aiml\prova.aiml [2006-07-04 17:58:38,234] INFO: Loading file:/C:/ProgramD/aiml/prova.aiml.... [2006-07-04 17:58:38,234] INFO: 1 categories loaded from "aiml\prova.aiml". [Motore Inferenziale] user> INVERTI ciao a tutto il dsy [2006-07-04 17:59:24,578] INFO: -winxppro- -> SampleBot: "INVERTI ciao a tutto i l dsy"; SampleBot -> -winxppro-: "ysd li ottut a oaic" Motore Inferenziale> ysd li ottut a oaic [Motore Inferenziale] user>
si esatto ho inserito la conoscenza (<learn> ) ed è sicuramente giusto far così!
Le altre procedure sono identiche, tranne quelle errore sul tag javascript prohibited!
Mi potresti postare il tuo "log" dall avvio di programd pls?
--------------------------------EDIT--------------------------------
risolto, nel file core.xml in conf era desabilitato l'uso del tag javascript
thk
ma quindi è giusto far così?
e quel tag <reverse> che vuole il prof? lo dimentichiamo?
inoltre ho provato a fare l'esercizio successivo ma non ho capito come si devono usare le funzioni date dal prof!
per il tag reverse non so cosa intenda, ma un appunto sul tuo esercizo...
la consegna diceva di fare il reverse della frase...
es: cane ciao -> ciao cane....
tu inverti anche le lettere ( enac oaic )
:S :S :S cavolo, non avevo letto bene :S
ciao a tutti, nessuna novita sull'utilizzo della libreria javascript del prof?
ciao...io ho il tuo stesso problema, ho mandato un'e-mail al tutor (dato che l'altra volta mi ha aiutata con l'installazione)...appena mi risponde ti faccio sapere che mi dice....
bene, nel frattempo sono riuscito ad invertire correttamente le parole ![]()
qualcuno sa indicarmi qualche guida online di javascript? non trovo niente di decente che fa al caso nostro
ci sarebbe questa http://www.ecma-international.org/p...ds/Ecma-262.htm solo che non è il massimo essendo in pdf.
Cerca quel che ti serve man mano su google, secondo me fai prima ![]()
__________________
| CM-Stacker [STC-T01] | OCZ ModXStream 780W | Abit AW9D-MAX @300 | Intel C2Q Q6600 G0 @2700 | Asus Silent Square | 4 x 1Gb OCZ DDR2 PC2-6400 Platinum Rev. 2 4-4-4-15 @900 | OCZ XTC Cooler | PowerColor ATi X1950XTX 675@1098 | 2 x 6G160E0 in RAID0 | WD3200YS | 6L250R0 | 6Y200P0 | PIONEER DVR-215 | Cinergy 1200 DVB-T | Samsung SyncMaster 940BW |
ma provando così sei riuscito a far qualcosa con il 2° esercizio?io ho fatto una prova ma quano lo eseguo mi fa vedere il testo che ho messo...perchè??
io non riesco a fare una fava...javascript non lo digerisco proprio!
ma la LibreriaJavascript a voi funza? a me no...
<category>
<pattern>MASSIMO *</pattern>
<template><srai>CONFRONTA PER MASSIMO <star/></srai>
</template>
</category>
va a richiamare CONFRONTA PER MASSIMO nella LibreriaJavascript ma non da alcun ris
| All times are GMT. The time now is 10:07. | Pages (5): « 1 [2] 3 4 5 » Show all 68 posts from this thread on one page |
Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.