Aimed at addressing some of the drawbacks of current annotation tools in annotating functional and discourse texts, this paper proposes a collaborative framework built on a cloud-baesd platform.The platform, built on a powerful database infrastructure, provides real-time visualization to functional and discourse information in the process of annotation, fully utilizing the features of collaborative annotation.The paper hopes to address the problems in annotating corpora based on Systemic Functional Linguistics, and make contributions to computer-assisted language learning and teaching.