This pattern (an instance of the gloss+hypeonymyr/meronymy rule) cumulates evidence for senses #1 of both railway and company.
as far as the context T is concerned, the intuition is that, with a larger T , there are higher chances of detecting semantic patterns among the "correct" senses of the terms in T. the dimension of contexts T i is an external contingency, it depends upon the available corpus.