title: how to create our own training data for opennlp parser
body: <p>I am new to opennlp , need help to customize the parser</p>
  
  <p>I have the used the opennlp parser with the pre-trained model en-pos-maxtent.bin to tag new raw english sentences with the corresponding parts fo speech, now i would like to customize the tags.</p>
  
  <p>example sentence:
  Dog jumped over the wall.</p>
  
  <p>after POS tagging by using en-pos-maxtent.bin , the result would be</p>
  
  <p>Dog - NNP</p>
  
  <p>jumped - VBD</p>
  
  <p>over - IN</p>
  
  <p>the - DT</p>
  
  <p>wall - NN</p>
  
  <p>but i want to train my own model and tag the words with my custom tags like</p>
  
  <p>DOG - PERP</p>
  
  <p>jumped - ACT</p>
  
  <p>over - OTH</p>
  
  <p>the - OTH</p>
  
  <p>wall - OBJ</p>
  
  <p>where PERP, ACT,OTH,OBJ are the tags that suit my necessities. is this possible ?</p>
  
  <p>I checked the section of their documentation, they have given code to train a model and use it later on , the code goes like this</p>
  
  <pre><code>try {
    dataIn = new FileInputStream("en-pos.train");
    ObjectStream&lt;String&gt; lineStream = new PlainTextByLineStream(dataIn, "UTF-8");
    ObjectStream&lt;POSSample&gt; sampleStream = new WordTagSampleStream(lineStream);
  
    model = POSTaggerME.train("en", sampleStream, TrainingParameters.defaultParams(), null, null);
  }
  catch (IOException e) {
    // Failed to read or parse training data, training failed
    e.printStackTrace();
  }
  </code></pre>
  
  <p>I am not able to understand what this "en-pos.train" is ?</p>
  
  <p>what is the format of this file ? can we specify the custom tags here or what exactly this file is ?</p>
  
  <p>any help would be appreciated</p>
  
  <p>Thanks</p>