Comments (2)
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.
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)
- Wiki markup parsing is hard HOT 1
- Could the training data of 'caspar.flow' be released? HOT 2
- Open source projects using SLING?
- The caspar.flow appears to be un-trained HOT 9
- Problem converting Ontonotes corpus to SLING HOT 3
- Build Error: object of type 'ctx' has no field 'actions' HOT 2
- /data/wiki/templates-en.sling: No such file or directory HOT 4
- ImportError: No module named 'sling.pysling' HOT 3
- SLING for other languages HOT 1
- TypeError: 'ParserState' object is not iterable HOT 1
- Beyond 12 languages HOT 18
- SLING Frames - how can one retrieve multiple slot values? HOT 5
- What does "mapping.sling" do? HOT 4
- Training sling in Korean | How do I make a `.rec` file? HOT 4
- SLING with many frames on a small dataset HOT 3
- Annotating data HOT 1
- Python API for the tokenizer HOT 5
- problem about "sling fuse_items" HOT 2
- Error: No kernel supports step features/GatherSum HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sling.