<?php
+/**
+ * @package MediaWiki
+ */
+
/**
* Client for querying zhdaemon
*
* @package MediaWiki
*/
-
class ZhClient {
var $mHost, $mPort, $mFP, $mConnected;
}
/**
- * Convert the input to all possible variants
+ * Convert the input to all possible variants
*
* @param string $text input text
* @return array langcode => converted_string
* @access public
- */
+ */
function convertToAllVariants($text) {
$len = strlen($text);
$q = "CONV ALL $len\n$text";
$i+=$len;
}
return $ret;
- }
+ }
/**
* Perform word segmentation
*
fclose($this->mFP);
}
}
-
?>
\ No newline at end of file