Example 2 of Chinese word segmentation for one line of the Bag tag
Example 1:
Word Segmentation (return a comma-separated phrase with quotation marks, gap = ",", quotes = "'" orQuotes = '"')
Single quotes
<Bag id = pPage act = 2 words name = words gap = "," quotes = "'"> I like a yellow high-neck t-shirt </bag>
Output word splitting result
<P> <B> result phrase: </B> @ {pPage: words} </p>
Double quotation marks
<Bag id = pPage act = 2 words name = words gap = "," quotes = '"'> I like a yellow high-neck t-shirt </bag>
Output word splitting result
<P> <B> result phrase: </B> @ {pPage: words} </p>
Effect
Complete code
<Html> <title> Word Segmentation: returns a comma-separated phrase with each word enclosed in quotation marks </title>
(Example file: _ samples/2words2.html)
In this way, word segmentation can be directly used as a query condition for SQL, such as where word in (@ {pPage: words!
Download and description of light platform Resources
Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8464425
Development Instance:Light B2C e-commerce websites, Free download: http://download.csdn.net/detail/tx18/8318585
The light-Open Platform will occasionally upgrade to provide more powerful and Easy functions for you. Please note thatDownload the latest version