GithubHelp home page GithubHelp logo

Comments (5)

sammthomson avatar sammthomson commented on June 16, 2024 1

Hi, is there any chance your input file has some blank lines in it? I've run into a similar error in that case. If so, a temporary work-around might be to delete the empty lines before running SEMAFOR.

from semafor.

arisagithub avatar arisagithub commented on June 16, 2024

Thank you very much for your reply.
I fix this problem by copying the content of input .txt file to a new linux plaintext document and using this new file as input.
but now I have another problem, I need Xml output but, when I set the outputfile path to "/out.xml" the generated output file format is not xml.

here is a sample output:
{"frames":[{"target":{"name":"Operational_testing","spans":[{"start":3,"end":4,"text":"test"}]},"annotationSets":[{"rank":0,"score":71.00063282566339,"frameElements":[{"name":"Product","spans":[{"start":4,"end":10,"text":"for SEMAFOR , a frame-semantic parser"}]}]}]}],"tokens":["This","is","a","test","for","SEMAFOR",",","a","frame-semantic","parser","."]}
{"frames":[{"target":{"name":"Shapes","spans":[{"start":5,"end":6,"text":"line"}]},"annotationSets":[{"rank":0,"score":11.818446277549976,"frameElements":[{"name":"Shape","spans":[{"start":5,"end":6,"text":"line"}]}]}]}],"tokens":["This","is","just","a","dummy","line","."]}
{"frames":[{"target":{"name":"Existence","spans":[{"start":0,"end":2,"text":"There 's"}]},"annotationSets":[{"rank":0,"score":52.10168633235354,"frameElements":[{"name":"Entity","spans":[{"start":2,"end":5,"text":"a Santa Claus"}]}]}]}],"tokens":["There","'s","a","Santa","Claus","!"]}

how can i get xml output from Semafor?

from semafor.

s-pranita avatar s-pranita commented on June 16, 2024

I am getting same error in Windows even after removing '\n'. How to resolve it ?

from semafor.

arisagithub avatar arisagithub commented on June 16, 2024

from semafor.

s-pranita avatar s-pranita commented on June 16, 2024

Is there any way to make it work in Windows?

from semafor.

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.