title: How to predict whether the given sentence is grammatically correct or not?
body: <p>I am trying to create a predictive model where the model tells whether the give sentence is correct or not by checking the order of the words in the sentence. The model checks weather the particular sequence of words as already occurred in a huge corpus and makes sense or no. </p>
  
  <p>I tried doing this with the word2vec model and removed the cosine similarity or WMD distance of the two sentences but that only gives the similarity based on the word vector similarity and not the sequence of the words.</p>
  
  <p>So if we give the input as 2 sentences:</p>
  
  <p>Sentence 1- "I am going to the shop"</p>
  
  <p>Sentence 2- "going I am the shop to"</p>
  
  <p>output should indicate that the sentence is invalid or with a similarity of 20% or less</p>
  
  <p>Whereas the word2vec model shows 100% similarity as the words entered are same irrespective of the order. So i guess it cannot be used for comparing the word order. Any other suggestions could also be very helpful.</p>