( ( Two ( electron pairs ) ) ( ( shared ( ( a ( double ( bond ( Three ( electron pairs ) ) ) ) ) ( shared ( ( a ( triple bond ) ) ( ( Because ( ( each nitrogen ) ( contains ( 5 ( valence electrons ) ) ) ) ) ( , ( they ( need ( to ( ( share ( 3 pairs ) ) ( ( to each ) ( achieve ( a ( valence octet ) ) ) ) ) ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (CD Two) (JJ electron) (NNS pairs)) (VP (VBD shared) (SBAR (S (NP (DT a) (JJ double) (NN bond) (CD Three) (NN electron) (NNS pairs)) (VP (VBD shared) (NP (NP (DT a) (JJ triple) (NN bond)) (SBAR (S (SBAR (IN Because) (S (NP (DT each) (NN nitrogen)) (VP (VBZ contains) (NP (CD 5) (JJ valence) (NNS electrons))))) (, ,) (NP (PRP they)) (VP (VBP need) (S (VP (TO to) (VP (VB share) (NP (CD 3) (NNS pairs)) (VP (TO to) (DT each) (VP (VB achieve) (NP (DT a) (JJ valence) (NN octet))))))))))))))) (. .)))
Two electron pairs shared a double bond Three electron pairs shared a triple bond Because each nitrogen contains 5 valence electrons, they need to share 3 pairs to each achieve a valence octet.
(ROOT (S (NP (NNP Nitrogen)) (VP (VBZ has) (NP (CD 5) (JJ valence) (NNS electrons))) (. .)))