Skip to content

Gerunds not labelled correctly #2

@matthewtoast

Description

@matthewtoast

The parser seems to incorrectly label gerunds.

For example:

require('en-parse').parse(
  ['VBG', 'VBZ', 'NN'],
  ['playing', 'is', 'fun']
)
// output:
[ { label: 'ROOT', type: 'VP', parent: -1 },
  { label: 'NSUBJ', type: 'VP', parent: 0 },
  { label: 'DOBJ', type: 'NP', parent: 1 } ]

In this case I would expect:

[ { label: 'NSUBJ', type: 'VP', parent: 1 }, // playing
  { label: 'ROOT', type: 'VP', parent: -1 }, // is
  { label: 'DOBJ', type: 'NP', parent: 1 } ] // fun

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions