Assuming the same letters are not distinguishable:
There are 7! = 5040 ways to arrange 7 different letters in a line. But, since T and E are both repeated twice, the letters are overcounted by a factor of 2*2=4. therefore, the answer is 5040/4=\(\boxed{1260}\)