title: How do I split a sentence into several phrases?
body: <p>I want to split a sentence into several meaningful part, for example:
  I have an input from user:<code>Samsung phone case </code>, I want to split in to a list:[<code>Samsung phone</code>, <code>phone case</code>,<code>Samsung phone case</code>], that means <code>Samsung phone</code> is a valid object, <code>phone case</code> is another valid object, <code>Samsung phone case</code> also is a valid object, how to do this with python?</p>
  <p>The moderator said I need to add some debug details, so let me explain it a little more, what I need is to analysis the input from a user, like split/combination, another example:
  a user input :<code>case of Samsung phone</code>, the result I need is:[<code>case of Samsung</code>, <code>case of Samsung phone</code>, <code>Samsung phone</code>], it's not a sample split and combination, cuz <code>case of</code> is not what I need, I tried nltk lib, it can split in to every word, but doesn't have a combination.</p>
  <p>So the key point is after the combination, the phrase/word should be meaningful like the example above =&gt; every of [<code>case of Samsung</code>, <code>case of Samsung phone</code>, <code>Samsung phone</code>] is meaningful, but <code>case of</code> is not meaningful(not a valid object).</p>
  <p>I don't know if there's an AI lib can help me to solve the problem.</p>