AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Input parameter only first word Why?
 
 

I am using another language and I have a program that I run in DOS to get thePostTagger from what was entered by the user ... I am trying but only the first word is passed .. when a user-entered phrase arrives it is always the first word it is accepts
How do I convert the text into a string to stay
nlp.exe “input of user”

outputmacro: ^PosTagger(^arg)
  NLP %originalinput

outputmacro: ^Output(^arg)
  ^arg \n

topic: ~INTRODUCTIONS ( ~NOUN_PROPER_SINGULAR )
  u: (~NOUN_PROPER_SINGULAR )  popen( ^PosTagger($originalinput) ‘^Output)

Image Attachments
error.png
 

 
  [ # 1 ]

Let me make sure I understand. 

^popen ( commandstring ‘function )  takes a string to execute on the os.
You have ^postagger($originalInput)  for which you pass an argument that is not used. You put stuff into the output buffer for the user BUT this is not the same thing as returning a string. Try this:

u: (~noun_proper_singular)
  $_msg = ^“NLP %originalInput”
  ^popen( $_msg ‘^output)

 

 
  login or register to react