Comments (5)
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.
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.
I am getting same error in Windows even after removing '\n'. How to resolve it ?
from semafor.
from semafor.
Is there any way to make it work in Windows?
from semafor.
Related Issues (20)
- incomplete JSON output
- Command-line interface
- Results different form online demo HOT 4
- NumberFormatException at Alphabet creation step during training
- error in large sentences
- which part is the code for ACL-2011. (Graph-based) HOT 1
- Issue with tokenizer.sed HOT 2
- Cannot find and load class HOT 2
- missing $ in config.sh
- ERROR: Exception in thread "main" java.lang.NumberFormatException: null
- Exception in thread "main" java.util.concurrent.RejectedExecutionException
- NoSuchElementException is thrown for some weird sentences HOT 1
- Execution time of semafor (server mode)
- Can we train SEMAFOR on different languages like Persian?
- Preformat to ConLL for server
- Problem with Maven in Installation HOT 1
- Issue in getting frames
- Part of speech tagger is broken HOT 1
- Test set split
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 semafor.