English 中文(简体)
构建一个像iOS版Siri一样工作的PHP应用程序
原标题:Build a PHP app that works like Siri for iOS
  • 时间:2012-05-27 17:14:08
  •  标签:
  • php

是否有可能用PHP构建一个自动响应每次表单提交的应用程序

这样地:

因此,例如,如果表单提交为$_POST[q]=“hi”,则输出为“Hello..”

比如使用case语句:

for case $_POST[ q ] = "how do you do?"
echo "fine";

for case $_POST[ q ] = "what s your name ? "
echo "ABC"

等等。

有人能帮我在PHP中构建这样的函数吗

我想的是:对于表单提交,应该有来自数组的打印/回声,就像iOS上的Siri一样。。。

最佳回答

To implement siri. The task is much sophisticated which includes Tokenization, sentence segmentation, part-of-speech tagging, named entity extraction, chunking, parsing, coreference resolution and much more programming.
These links might help you.
ai-class
http://opennlp.apache.org/
http://nlp.stanford.edu/software/

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...