Beispiel #1
0
    def get_json(self, lang, sentences):
        '''
            Explanation: Creates object of class NLP to get the list of sentences in appropriate tagged JSON format

            Parameters:
                lang: Language of the list of sentences
                sentences: List of string represeting the sentences
            
            Return:
                JSON object containing annotated values
        '''
        nlp = NLP(lang, sentences)
        return nlp.get_dependencies()