On Sat, May 15, 2010 at 9:02 PM, timo verbeek <span dir="ltr"><<a href="mailto:timoverbeek10@gmail.com">timoverbeek10@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'm planning to create a human word program<br></blockquote><div><br><snip> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I need help with getting the useful information how do I get the place<br>
if I don't now how long the string is?<br><br></blockquote><div>Boy, that is a very hard problem. Are the inputs restricted to anything? English only? Can the human user type in *anything*?<br><br>You need to have a very, very good set of heruistics and deterministic functions to do that.<br>
<br>What have you got so far?<br><br>-<br><br>Otherwise, <br><br>"How do I get the position of a known word in a string if the length if unknown?" <br><br>>>> input = 'Give me the weather for London please.'<br>
>>> input.find('weather')<br>12<br><br>Cheers,<br>Xav<br></div></div>