siri2jarvis
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Text/Strs/Chars/Links
Introduced first in SolidGeometry 5.1, Creation date: 2022-01-27, Last change: 2025-09-15
converts spoken or written natural language sentences into a simple grammar
Description
this funtion uses an excel sheet as translation table that can be edited manually or by this function itself. The function will replace siri2posecommand which is a hardcode version of this language converter.
The advantage of siri2jarvis is that the dictionary can simply exchanged for different "application specific languages". This version reads in the jarvisdictionary just before processing a line, this allows to create the dictionary using excel just in parallel to the use of the NL interface
See Also: siri2jarvis
, fourbardesignbysiri
, jarvisdictionary
Example Illustration
Syntax
[cmd,str,comtab]=siri2jarvis([str,fn])
Input Parameter
str: | | string to interprete |
fn: | | filename of the dictionnary used |
Output Parameter
cmd: | | cell list of commands, the first is always a string |
str: | | string that was finally processed |
comtab: | | table of terminal words that were allowed as commands |
Examples
while true; siri2jarvis, end; % test and train the translator
Copyright 2022-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21