I'm trying to split sentences into clauses for a sentiment analysis purpose. For example, I'd like to change the sentence "I liked the plot but the acting was horrible." into "I liked the plot", "but the acting was horrible.".
I tried to look up how other people do this and found out 2 ways. The first way was to use nltk parse tree as the link below. How to split an NLP parse tree to clauses (independent and subordinate)?
Another way was to use spacy package and find root verb as the link below. https://subscription.packtpub.com/book/data/9781838987312/2/ch02lvl1sec13/splitting-sentences-into-clauses
What is the best way to split into clauses from above or is there any better way?