Bag tag into a line of code to implement Chinese characters

Source: Internet
Author: User

Description

<bag id= schoolbag name Act=2words[name=key] [gap= characters] [quotes= quotes]> Chinese-English mixed content </Bag>

Example 0:

Default participle (no gap and quotes parameters)

<bagid=ppage act=2words name=words> I like the yellow turtleneck t-shirt </bag>
Output Word Segmentation results
<p><b> result phrases: </b>@{pPage:words}</p>

Effect:


Full code

(sample file: _samples/2words.html)

Just a line of code to implement the Chinese + English mixed intelligent word segmentation. Pretty easy.

Download and description of light-open platform resources

Platform and Latest Development Brochure free Download: http://download.csdn.net/detail/tx18/8464425

Development example: Light Open e-commerce site , free download: http://download.csdn.net/detail/tx18/8318585

The light-open platform will be upgraded from time to time to provide you with many other powerful and easy features. Please pay attention to Download the latest version


Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Bag tag into a line of code to implement Chinese characters

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.