Git Product home page Git Product logo

Comments (2)

 avatar commented on June 10, 2024

I managed to get it, but had difficulties in parsing the output( i.e. i want to extract predicates and roles.) Is there a simple way to get these info instead of parsing the following structure?

{=#1 :document text: "Israel moved quickly to explain the attack on the Jabalya school , 

saying its forces had been fired on first ." tokens: [{=#2 start: 0 size: 6}, {=#3 start: 7 size: 

5}, {=#4 start: 13 size: 7}, {=#5 start: 21 size: 2}, {=#6 start: 24 size: 7}, {=#7 start: 32 size:

 3}, {=#8 start: 36 size: 6}, {=#9 start: 43 size: 2}, {=#10 start: 46 size: 3}, {=#11 start: 50

 size: 7}, {=#12 start: 58 size: 6}, {=#13 start: 65}, {=#14 start: 67 size: 6}, {=#15 start: 74 

size: 3}, {=#16 start: 78 size: 6}, {=#17 start: 85 size: 3}, {=#18 start: 89 size: 4}, {=#19 start: 94 size: 5}, {=#20 start: 100 size: 2}, {=#21 start: 103 size: 5}, {=#22 start: 109}] mention: {=#23 begin: 0 evokes: {=#24 :GPE}} mention: {=#25 begin: 1 evokes: {=#26 :/pb/predicate /pb/ARG1: #24 /pb/ARGM-MNR: {=#27 :thing} /pb/ARG2: {=#28 :/pb/predicate /pb/ARG0: #24 /pb/ARG1: {=#29 :thing}} /pb/ARGM-ADV: {=#30 :/pb/predicate /pb/ARG0: #24 /pb/ARG1: {=#31 :thing}}}} mention: {=#32 begin: 2 evokes: #27} mention: {=#33 begin: 4 evokes: #28} mention: {=#34 begin: 6 evokes: #29} mention: {=#35 begin: 9 length: 2 evokes: {=#36 :LOC}} mention: {=#37 begin: 12 evokes: #30} mention: {=#38 begin: 13 evokes: {=#39 :thing}} mention: {=#40 begin: 14 evokes: {=#41 :thing}} mention: {=#42 begin: 15 evokes: #31} mention: {=#43 begin: 16 evokes: {=#44 :/pb/predicate}} mention: {=#45 begin: 17 evokes: {=#46 :/pb/predicate /pb/ARG1: #41 /pb/ARGM-TMP: {=#47 :ORDINAL}}} mention: {=#48 begin: 19 evokes: #47}}

from sling.

ringgaard avatar ringgaard commented on June 10, 2024

You can look here for a description of the SLING document format:

https://github.com/google/sling/blob/master/doc/guide/pyapi.md#documents

from sling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.