Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

How to parse Linguistis Analysis Token Output #105

@rachita0311

Description

@rachita0311

Hi , I am using Linguistics Analysis API to fetch questions from a paragraph . For e.g .

Supplier shall describe how and to what extent activities in the IT-services comprising the Service(s) are logged and how long the logs are stored. Supplier shall describe how its logging facilities and log information are protected against tampering and unauthorized access.

I want response as
Supplier shall describe how and to what extent activities in the IT-services comprising the Service(s) are logged
how long the logs are stored
Supplier shall describe how its logging facilities and log information are protected against tampering and unauthorized access.

From Linguistics I am getting below response 👍
(TOP (S (NP (NNS Supplier)) (VP (MD shall) (VP (VB describe) (SBAR (WRB how) (CC and) (SBAR (SBAR (WHPP (TO to) (WHNP (WP what) (NN extent) (NNS activities))) (S (PP (IN in) (NP (NP (DT the) (CD IT-services)) (VP (VBG comprising) (NP (NP (DT the) (NNP Service)) (PRN (-LRB- -LRB-) (VBZ s) (-RRB- -RRB-)))))) (VP (VBP are) (VBD logged)))) (CC and) (SBAR (WHADVP (WRB how) (RB long)) (S (NP (DT the) (NNS logs)) (VP (VBP are) (VP (VBN stored))))))))) (. .)))

(TOP (S (NP (NNS Supplier)) (VP (MD shall) (VP (VB describe) (SBAR (WHADVP (WRB how)) (S (NP (PRP$ its) (NX (NX (NN logging) (NNS facilities)) (CC and) (NX (NN log) (NN information)))) (VP (VBP are) (VP (VBN protected) (PP (IN against) (NP (ADJP (VBG tampering) (CC and) (JJ unauthorized)) (NN access))))))))) (. .)))

How to analyse/parse this response in C# code.

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