The gap of isolated ribbon is inversely proportional to the width of ribbon. The gap of doped ribbon cannot be modeled by effective width approximation. The fitted energy gap can match the experimental observations. The doping results in a spin-polarized metallic-like band structure.