title: Create Customized Tokenizer for Stanford core NLP
body: <p>am new baby to stanford NLP and have been using this from last few days and now stuck to my last step of the process.
  When i use PTBTokenizer it breaks the sentence into words but what i want is that it should break sentence into either NamedEntities or Verbs so that i can use kind of dependency tree to rebuild sentence with direct kind of conclusions from whole sentence also it should also understand the same entity from entities.
  Is that possible to customize tokenizer to achieve this? 
  Your help is appriatiated.
  Thanks in advance.</p>
  
  <pre><code>try{
       // Properties props = StringUtils.argsToProperties(args);
  
        Properties props = new Properties();
        props.put("annotators",   "tokenize,ssplit");
        props.setProperty("annotators", "tokenize,ssplit,lemma,pos,parse,ner");
        StanfordCoreNLP pipeline = new StanfordCoreNLP();
        String sentence = "Kapil Puri, original promoter of Sparsh BPO, now owned by Blackstone controlled Intelenet, has decided to sell his residual stake of 12%.";
  
        Annotation doc = new Annotation(sentence);
  
        pipeline.annotate(doc);
        RelationExtractorAnnotator r = new RelationExtractorAnnotator(props);
        r.annotate(doc);
  
        for(CoreMap s: doc.get(CoreAnnotations.SentencesAnnotation.class)){         
          System.out.println("For sentence :=&gt;" + s.get(CoreAnnotations.TextAnnotation.class));
          List&lt;RelationMention&gt; rls  = s.get(RelationMentionsAnnotation.class);
          for(RelationMention rl: rls){
            System.out.println(rl.toString());
          }
        }
      }catch(Exception e){
        e.printStackTrace();
      }
  </code></pre>