diff --git a/conllu.js b/conllu.js index d5f2066..79a831f 100644 --- a/conllu.js +++ b/conllu.js @@ -3,7 +3,7 @@ /* CoNLL-U format library for JavaScript. -Home:http://github.com/spyysalo/conllu.js +Home: http://github.com/spyysalo/conllu.js Format: http://universaldependencies.github.io/docs/format.html Author: Sampo Pyysalo @@ -288,11 +288,39 @@ var ConllU = (function(window, undefined) { }); }; - // return the text of the sentence for visualization with brat - Sentence.prototype.bratText = function() { + // return words with possible modifications for visualization with + // brat + Sentence.prototype.bratWords = function() { var words = this.words(); + + for (var i=0; i