2016-03-02

Mar 2 Thread .

Post your code for the March 2, let's build something into this thread.
Best, Chris
Post your code for the March 2, let's build something into this thread. Best, Chris

-- Mar 2 Thread
<?php
 namespace tejasaoji\test_composer;
 use seekquarry\yioop\library\PhraseParser;
 require_once "vendor/autoload.php";
 print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN'));
Output is :: Array (
    [0] => 你们
    [1] => 好
    [2] => 吗
)
(Edited: 2016-03-02)
<?php namespace tejasaoji\test_composer; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN')); Output is :: Array ( [0] => 你们 [1] => 好 [2] => 吗 )

-- Mar 2 Thread
<?php
namespace kpalesha\test_composer;
use seekquarry\yioop\library\PhraseParser;
require_once "vendor/autoload.php";
print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN'));
Output: Array (
    [0] => 你们
    [1] => 好
    [2] => 吗
)
(Edited: 2016-03-02)
<?php namespace kpalesha\test_composer; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN')); Output: Array ( [0] => 你们 [1] => 好 [2] => 吗 )

-- Mar 2 Thread
<?php namespace MyProject; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN'));
<?php namespace MyProject; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN'));

-- Mar 2 Thread
 <?php
 namespace louyang\composerproject;
 
 use seekquarry\yioop\library\PhraseParser;
 
 require_once "vendor/autoload.php";
 print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN'));
 ?>
Output: php index.php Array (
    [0] => 你们
    [1] => 好
    [2] => 吗
)
<?php namespace louyang\composerproject; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN')); ?> Output: php index.php Array ( [0] => 你们 [1] => 好 [2] => 吗 )

-- Mar 2 Thread
<?php namespace dhruven\CS267_project;
use seekquarry\yioop\configs as SYC; use seekquarry\yioop\library as SYL; use seekquarry\yioop\library\PhraseParser;
require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN')); echo SYL\crawlHash(SYC\NAME_SERVER . "1234");
//Output from Windows machine is different from expected output! ---output--- Array (
    [0] => 吗
    [1] => 你
    [2] => 们
    [3] => 好
    [4] => 吗
) joQWpC4Sdy4
(Edited: 2016-03-02)
<?php namespace dhruven\CS267_project; use seekquarry\yioop\configs as SYC; use seekquarry\yioop\library as SYL; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN')); echo SYL\crawlHash(SYC\NAME_SERVER . "1234"); //Output from Windows machine is different from expected output! ---output--- Array ( [0] => σÉù [1] => Σ╜á [2] => Σ╗¼ [3] => σÑ╜ [4] => σÉù ) joQWpC4Sdy4

-- Mar 2 Thread
I am not sure, why i am getting 5 words. Editor i am using is also using UTF-8.
Array (
    [0] => 吗
    [1] => 你
    [2] => 们
    [3] => 好
    [4] => 吗
)
I am not sure, why i am getting 5 words. Editor i am using is also using UTF-8. Array ( [0] => 吗 [1] => 你 [2] => 们 [3] => 好 [4] => 吗 )

-- Mar 2 Thread
<?php
namespace sonalnprashant\desktop\Classwork;
use seekquarry\yioop\configs as SYC;
use seekquarry\yioop\library as SYL;
use seekquarry\yioop\library\PhraseParser;
require_once "vendor/autoload.php";
print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN'));
?>
Output: Sonals-MacBook-Air:Classwork sonalnprashant$ php index.php Array (
    [0] => 你们
    [1] => 好
    [2] => 吗
)
(Edited: 2016-03-02)
<?php namespace sonalnprashant\desktop\Classwork; use seekquarry\yioop\configs as SYC; use seekquarry\yioop\library as SYL; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN')); ?> Output: Sonals-MacBook-Air:Classwork sonalnprashant$ php index.php Array ( [0] => 你们 [1] => 好 [2] => 吗 )

-- Mar 2 Thread
 <?php
 namespace zhonggn\test_composer;
 use seekquarry\yioop\library\PhraseParser;
 require_once "vendor/autoload.php";
 print_r(PhraseParser::segmentSegment("你们好吗?", 'zh-CN'));
 output:
 Array
(
    [0] => ?
    [1] => 你们
    [2] => 好
    [3] => 吗
    [4] => ?
)
 why the 0th element is '?'
(Edited: 2016-03-02)
<?php namespace zhonggn\test_composer; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗?", 'zh-CN')); output: Array ( [0] => ? [1] => 你们 [2] => 好 [3] => 吗 [4] => ? ) why the 0th element is '?'

-- Mar 2 Thread
Program :
<?php namespace priya\test_composer; use seekquarry\yioop\configs as SYC; use seekquarry\yioop\library as SYL; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN'));
Output: php index.php Array (
    [0] => 鍚
    [1] => 浣
    [2] => 浠
    [3] => 濂
    [4] => 鍚
)
Changed the system locale under administrative tab of region settings to Chinese (Simplified) and it was outputting chinese rather than unicode.
(Edited: 2016-03-03)
'''Program :''' <?php namespace priya\test_composer; use seekquarry\yioop\configs as SYC; use seekquarry\yioop\library as SYL; use seekquarry\yioop\library\PhraseParser; require_once "vendor/autoload.php"; print_r(PhraseParser::segmentSegment("你们好吗", 'zh-CN')); '''Output:''' php index.php Array ( [0] => 鍚 [1] => 浣 [2] => 浠 [3] => 濂 [4] => 鍚 ) Changed the system locale under administrative tab of region settings to Chinese (Simplified) and it was outputting chinese rather than unicode.
[ Next ]
X