EmilStenstrom / conllu

A CoNLL-U parser that takes a CoNLL-U formatted string and turns it into a nested python dictionary.
MIT License
311 stars 50 forks source link

Feature: Add filter() method of TokenList that returns a subset of nodes #29

Closed EmilStenstrom closed 5 years ago

EmilStenstrom commented 5 years ago

Idea: Use an API that is similar to Django's, where you can write data.filter(id__gt=3) and get all nodes with an ID greater than 3. data.filter(form="the", head=2) would return all nodes with both of those properties set.

EmilStenstrom commented 5 years ago

Fixed in c35ad9d261c950948679930adecb565ff632c750.