Parse By Sentence

Splits given text into sentences, and further breaks down sentences into parse trees

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Run an Example

[
  [
    "(TOP (S (NP (DT This)) (VP (VBZ is) (NP (DT a) (NN sentence.)))))",
    [
      "(S (NP (DT This)) (VP (VBZ is) (NP (DT a) (NN sentence.))))",
      [
        "(NP (DT This))",
        [
          "(DT This)",
          [
            "This"
          ]
        ]
      ],
      [
        "(VP (VBZ is) (NP (DT a) (NN sentence.)))",
        [
          "(VBZ is)",
          [
            "is"
          ]
        ],
        [
          "(NP (DT a) (NN sentence.))",
          [
            "(DT a)",
            [
              "a"
            ]
          ],
          [
            "(NN sentence.)",
            [
              "sentence."
            ]
          ]
        ]
      ]
    ]
  ],
  null
]

Install & Use

Use

curl -X POST -d '"This is a sentence. These sentences are for parsing."' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/ApacheOpenNLP/ParseBySentence/0.1.1