The optical band gap is the threshold for photons to be absorbed, while the transport gap is the threshold for creating an electron–hole pair that is not bound together. (The optical band gap is at a lower energy than the transport gap.)
In almost all inorganic semiconductors, such as silicon, gallium arsenide, etc., there is very little interaction between electrons and holes (very small exciton binding energy), and therefore the optical and electronic band gap are essentially identical, and the distinction between them is ignored. However, in some systems, including organic semiconductors, the distinction may be significant.