Add separator function to convert to words
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
# sentences-separator-to-words
|
||||
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())
|
||||
Reference in New Issue
Block a user