I know that there are harsh ways to discover your own nouns and use them with tools. But after that, the output is an array full of fragmented words.
How can I rewrite a sentence with broken names.
Example:
John Rose Center is very beautiful place and i want to go there with
Barbara Palvin. Also there are stores like Adidas ,Nike , Reebok.
if I use the stanford ( http://nlp.stanford.edu:8080/parser/index.jsp) parser , out put will be:
John/NNP Rose/NNP Center/NNP is/VBZ very/RB beautiful/JJ place/NN and/CC i/FW want/VBP to/TO go/VB there/RB with/IN Barbara/NNP Palvin/NNP ./.
Also/RB there/EX are/VBP stores/NNS like/IN Adidas/NNP ,/, Nike/NNP ,/, Reebok/NNP ./.
How can I rewrite a sentence as follows: Suppose we created an array with a tokenized sentence and split our own names, which are considered in one word:
for i in arr:
print arr[i]
['John Rose Center']
['is']
['very']
['beautiful']
.
.
['Barbara Palvin']
['Also']
['there']
.
.
['like']
['Adidas']
['Nike']
['Reebok']
"" , , , . - , , . , python, nltk. .
, " StranStan". ( ), , !