Add separator function to convert to words
This commit is contained in:
parent
007eefe0e1
commit
28e15042a8
@ -1,2 +1,5 @@
|
|||||||
# sentences-separator-to-words
|
# sentences-separator-to-words
|
||||||
From sentences to words by separate the word processing and delegate them into array
|
From sentences to words by separate the word processing and delegate them into array
|
||||||
|
|
||||||
|
- Text processing unit
|
||||||
|
- Split the words from sentences
|
5
src/main.py
Normal file
5
src/main.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from separator import convertToWords
|
||||||
|
|
||||||
|
sentences = ["Welcome to CUBETIQ Solution"]
|
||||||
|
|
||||||
|
print(convertToWords(sentences))
|
2
src/separator.py
Normal file
2
src/separator.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
def convertToWords(sentences):
|
||||||
|
return (sentences[0].split())
|
Loading…
Reference in New Issue
Block a user