![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
conllu-stream
Advanced tools
Using this module you can parse CoNLL-U files as a stream of sentence objects. You can also access the low-level line parser, if you want deeper control.
Node module to parse CoNLL-U file format as streams
Using this module you can parse CoNLL-U files as a stream of sentence objects. You can also access the low-level line parser, if you want deeper control. Example:
var conllu = require('conllu-stream');
require('fs').createReadStream('ud-treebanks-v2.0/UD_English/en-ud-train.conllu')
.pipe(conllu())
.on('data', function(sentence) {
console.log(sentence.toString());
});
npm install --save conllu-stream
The basic conllu()
transform stream emits sentence objects. They are instances of conllu.sentence.model.Sentence
. Properties:
'sentence'
sent_id
or text
Methods:
The conllu.line.stream()
is parsing each line of the input stream and emitting token objects. These are plain JSON objects with the properties depending on the type.
'sentence_boundary'
'sentence_feature'
sent_id
, text
or newpar
'comment'
'word'
, 'multiword'
, 'empty_node'
or 'unknown_node'
5.2
1
(word), 1-3
(multiword), 1.1
(empty_node)NOUN
, VERB
, PROPN
, etc.VMFIN
for finite modal verbs in Germanhead
word in dependency treeTransform stream takes conllu format as input stream and emits sentence objects as output object stream.
Code is licensed under MIT, please see license.md file for details.
FAQs
Using this module you can parse CoNLL-U files as a stream of sentence objects. You can also access the low-level line parser, if you want deeper control.
The npm package conllu-stream receives a total of 0 weekly downloads. As such, conllu-stream popularity was classified as not popular.
We found that conllu-stream demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.