Top "Text-segmentation" questions

Text segmentation is the process of dividing written text into meaningful units, such as words, sentences, or topics.

How to split a string into a list?

I want my Python function to split a sentence (input) and store each word in a list. My current code …

python list split text-segmentation
Converting a String to a List of Words?

I'm trying to convert a string to a list of words using python. I want to take something like the …

python string list words text-segmentation
How to get the first word of a sentence in PHP?

I want to extract the first word of a variable from a string. For example, take this input: <?php $…

php string extract text-segmentation
Python: Cut off the last word of a sentence?

What's the best way to slice the last word from a block of text? I can think of Split it …

python split concatenation word text-segmentation
Regex to match first word in sentence

I am looking for a regex that matches first word in a sentence excluding punctuation and white space. For example: "…

regex text-segmentation
Python extract sentence containing word

I am trying to extract all the sentence containing a specified word from a text. txt="I like to eat …

python regex text-segmentation
Split a string to a string of valid words using Dynamic Programming

I need to find a dynamic programming algorithm to solve this problem. I tried but couldn't figure it out. Here …

algorithm dynamic big-o text-segmentation
How to break up a paragraph by sentences in Python

I need to parse sentences from a paragraph in Python. Is there an existing package to do this, or should …

python regex text-segmentation
How to show sentence word by word in a separate line

The sentence String is expected to be a bunch of words separated by spaces, e.g. “Now is the time”. …

java text-segmentation
How to split a string into words. Ex: "stringintowords" -> "String Into Words"?

What is the right way to split a string into words ? (string doesn't contain any spaces or punctuation marks) For …

algorithm nlp dynamic-programming string-split text-segmentation