This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying that +walling is my Bitcoin username. You can send me #bitcoin here: https://onename.io/walling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ES5 version of chalk replacement with chaining :) | |
| var util = require("util"); | |
| function C(text) { | |
| var self = {}; | |
| Object.keys(util.inspect.colors).forEach(function(name) { | |
| var color = util.inspect.colors[name]; | |
| self[name] = function() { | |
| return C(util.format("\x1B[%sm%s\x1B[%sm", color[0], text, color[1])); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var conllu = require('conllu-stream'); | |
| var fs = require('fs'); | |
| fs.createReadStream('ud-treebanks-v2.0/UD_German/de-ud-train.conllu') | |
| .pipe(conllu()) | |
| .on('data', sentence => { | |
| console.log(sentence.features.sent_id, sentence.toString()); | |
| }); |
OlderNewer