Text

拆分文本

在 Ali Hub Text 中使用 拆分文本,并获得清晰的验证、结果、隐私说明和已记录限制。

拆分文本

Local processing

Source text

Result

Enter text to see the result here.

Introduction

拆分文本会将文本块分成较小片段,方便检查、复制和处理。你可以选择按行、段落、句子、单词或自定义分隔符拆分。

它适合每行一个项目的笔记、分开的段落,以及使用逗号、竖线、制表符或分号的列表。

拆分只处理结构,不会总结、翻译、纠错或重新排序文本。请保留原文,并在再次使用前检查结果。

What the tool measures

Line mode follows line breaks, paragraph mode follows separated blocks, and sentence mode follows visible ending punctuation.

Word mode uses a local tokenizer; punctuation, URLs, abbreviations, emoji and scripts without spaces may need review.

A custom delimiter is interpreted literally. Empty segments may be omitted by the processor, so compare important data with the original.

How to use it

  1. Paste or type the text.
  2. Choose lines, paragraphs, sentences, words, or custom delimiter.
  3. Enter the exact delimiter when needed.
  4. Run the operation and inspect segments in order.
  5. Check whitespace, punctuation, and empty values.

Splitting method

Mode 1

Lines follow line breaks; paragraphs follow separated blocks.

Mode 2

Sentences and words use visible punctuation and token boundaries; edge cases need review.

Mode 3

A custom delimiter is a literal boundary and surrounding spaces remain when the rule keeps them.

示例

Items by line

Alpha Beta Gamma

拆分文本: Alpha Beta Gamma

  1. Pega o escribe el texto y elige el modo correspondiente.
  2. Ejecuta la división y revisa cada segmento en el orden devuelto.

Two paragraphs

First paragraph. Second paragraph.

拆分文本: First paragraph. Second paragraph.

  1. Pega o escribe el texto y elige el modo correspondiente.
  2. Ejecuta la división y revisa cada segmento en el orden devuelto.

Sentence review

Check the title. Read the summary!

拆分文本: Check the title. Read the summary!

  1. Pega o escribe el texto y elige el modo correspondiente.
  2. Ejecuta la división y revisa cada segmento en el orden devuelto.

Word inspection

Clear labels help readers.

拆分文本: Clear labels help readers.

  1. Pega o escribe el texto y elige el modo correspondiente.
  2. Ejecuta la división y revisa cada segmento en el orden devuelto.

Pipe delimiter

red | green | blue

拆分文本: red | green | blue

  1. Pega o escribe el texto y elige el modo correspondiente.
  2. Ejecuta la división y revisa cada segmento en el orden devuelto.

Comma delimiter

one,two,three

拆分文本: one,two,three

  1. Pega o escribe el texto y elige el modo correspondiente.
  2. Ejecuta la división y revisa cada segmento en el orden devuelto.

Reading the result

Read the segments in source order and check where spaces or punctuation were placed.

If the result surprises you, test a short sample with one boundary at a time and compare modes.

Common mistakes

Using sentence mode for a list without sentence punctuation.

Entering a delimiter that looks similar but is not identical.

Assuming splitting trims spaces, repairs punctuation, removes duplicates, or preserves every empty field.

Limits

The tool does not rewrite, translate, sort, deduplicate, or verify facts.

Abbreviations, decimals, URLs, emoji, mixed scripts, and languages without spaces may produce unexpected boundaries.

For CSV, code, logs, or signed files, use a format aware parser and test the result in the receiving system.

常见问题

Which modes are supported?

It supports lines, paragraphs, sentences, words, and a custom delimiter.

What is the difference between lines and paragraphs?

Lines follow line breaks; paragraphs follow separated blocks, often a blank line.

Can I split on a comma or pipe?

Yes. Use custom delimiter mode and enter the exact sequence.

Does the tool remove words or punctuation?

No. It returns segments and does not rewrite the supplied words.

Why did sentences split unexpectedly?

It follows visible ending punctuation; abbreviations and decimals can look like boundaries.

Are empty segments preserved?

They may be omitted. Compare with the original when empty fields matter.

Can I split mixed scripts?

Yes, but inspect direction, punctuation, spaces, and word boundaries.

Is text sent to an AI service?

Splitting uses local rules and does not require an external AI service.

参考资料