npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

conllup

v3.1.3

Published

Javascript library for converting conll sentence to json format and vice-versa.

Downloads

76

Readme

Conllup JS

Javascript library for converting conll sentence to json format and vice-versa. The code include some test and is written in TS !

Who need that ?

Linguist, NLP researcher/engineer and computer scientist who want to show dependency tree in the browser. It is currently being used in :

  • Arborator-Grew : A web-app for online collaborative dependency parsing.
  • Reactive-Dep-Tree : An html plugin made with Vue.js for showing interactive dependency tree in the browser
  • Surface Syntactic SUD : A guideline on Surface Syntactic Universal Dependencies (SUD). Just check the website and try to interact with the dependency trees to have a live demo :D.

Updates history

3.1.3

  • minor change: getNodeFromTreeJson() (previously implemented) throw error in case of non existance of token only if specified

3.1.2

  • add: getNodeFromTreeJson() function that returns a node from a tree given it's index that can be a enhanced, group or normal token (indices have different format)

3.1.1

  • add: returnTokensInOrder() function that returns tokens of a tree in correct (UD) order (according to group, enhanced and normal tokens rules)

3.1

  • add support to Enhanced UD specifications (link here)

3.0

  • Change most of variables name to better suit with conllup-py porting
  • modify _featuresConllToJson() so it order features in the order specified by UD (thank you @bguil):

In sorting, uppercase letters are considered identical to their lowercase counterparts.

2.1

  • add : smart behavior for replaceArrayOfTokens() when a token split is detected. New tokens get their feats replicated from original splitted token, and preserve incoming governors relations

2.0.3

  • fix : when tokens are replaced/deleted with replaceArrayOfTokens() method, the tokens pointing to these tokens only got the HEAD deleted but not the DEPREL. It now delet both of them so the outputted conllu is valid

2.0.1

add compatibility for node import (from 3rd party codebase)

2.0.0

(Still in development)

  • Refactor the SentenceJson type to move the Group tokens in their own property (SentenceJson.GroupsToken)
  • Add support of UDPipe SpacesAfter (=//n ; //t ; //v, //f, //r, /s) MISC logic

1.1.7

  • add better error information when importing conll with less or more than 10 columns

1.1.6

  • add public constructTextFromTreeJson method (that take into account the SpaceAfter=No misc)

1.1.4

  • Fix aggressive normalization of hyphens in FORM and LEMMA

1.1.0

  • Support for group token
1-2 it's  _ _ _ _ _ _ _ _
1 it  _ _ _ _ _ _ _ _
2 's  _ _ _ _ _ _ _ _