Have you ever worked with PHP+SCWS? There are related problems, did not realize participle, just a word

Source: Internet
Author: User
Tags idf
Have you ever worked with PHP+SCWS? There is a problem, did not realize participle, just word.
Have you ever worked with PHP+SCWS? There is a problem, did not realize participle, just word.

There's already a phpinfo.
Scws

SCWS supportenabled
SCWS descriptionsimple Chinese Words segmentation
PECL Module version0.2.2
SCWS Library1.2.2
SCWS BUGREPORTHTTP://WWW.XUNSEARCH.COM/SCWS

But the following code

$str = "20 minutes before the examination, with the admission ticket and ID card into the examination room, and the admission ticket, ID card placed in the top right corner of the desktop";
$so = Scws_new ();
$so->send_text ($STR);
$temp = $so->get_result ();
$so->close ();
Print_r ($temp);
?>

can only produce the following results


Array
(
[0] = = Array
(
[Word] = Test
[Off] = 0
[Len] = 3
[IDF] = 0
[attr] = UN
)

[1] = = Array
(
[Word] = try
[Off] = 3
[Len] = 3
[IDF] = 0
[attr] = UN
)

[2] = = Array
(
[Word] = before
[Off] = 6
[Len] = 3
[IDF] = 0
[attr] = UN
)

[3] = = Array
(
[Word] = 20
[Off] = 9
[Len] = 2
[IDF] = 0
[attr] = UN
)

[4] = = Array
(
[Word] + =
[Off] = 11
[Len] = 3
[IDF] = 0
[attr] = UN
)

[5] = = Array
(
[Word] = + clock
[Off] = 14
[Len] = 3
[IDF] = 0
[attr] = UN
)

[6] = = Array
(
[Word] =,
[Off] = 17
[Len] = 3
[IDF] = 0
[attr] = UN
)

[7] = = Array
(
[Word] =
[Off] = 20
[Len] = 3
[IDF] = 0
[attr] = UN
)

[8] = = Array
(
[Word] =
[Off] = 23
[Len] = 3
[IDF] = 0
[attr] = UN
)

[9] = = Array
(
[Word] = Test
[Off] = 26
[Len] = 3
[IDF] = 0
[attr] = UN
)

[Ten] + = Array
(
[Word] + certificate
[Off] = 29
[Len] = 3
[IDF] = 0
[attr] = UN
)

[one] = = Array
(
[Word] = + and
[Off] = 32
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = body
[Off] = 35
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = =
[Off] = 38
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] + certificate
[Off] = 41
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = Enter
[Off] = 44
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = + in
[Off] = 47
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = Test
[Off] = 50
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = = Field
[Off] = 53
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] =,
[Off] = 56
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = = to
[Off] = 59
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = #
[Off] = 62
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = + in
[Off] = 65
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] + block
[Off] = 68
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] =,
[Off] = 71
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = and
[Off] = 74
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = = will
[Off] = 77
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] =
[Off] = 80
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = Test
[Off] = 83
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] + certificate
[OFF] = 86
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = =,
[OFF] = 89
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = = Array
(
[Word] = body
[Off] = 92
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = =
[Off] = 95
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] + certificate
[Off] = 98
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = + put
[Off] = 101
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = + in
[Off] = 104
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = + table
[Off] = 107
[Len] = 3
[IDF] = 0
[attr] = UN
)

[PNS] = Array
(
[Word] = polygon
[Off] = 110
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = right
[Off] = 113
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = on
[Off] = 116
[Len] = 3
[IDF] = 0
[attr] = UN
)

[+] = Array
(
[Word] = angle
[Off] = 119
[Len] = 3
[IDF] = 0
[attr] = UN
)

)


I installed it according to the official documents. Does it require additional configuration?
------to solve the idea----------------------
The dictionary path is not configured, okay?
Or the wrong character set.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.