Comments (9)
As we mention in the main page, you can use the given .jar and provide the path to the newsela dataset. See https://github.com/neosyon/SimpTextAlign#usage
from simptextalign.
Thank you for your reply. I have tried it, but I got this error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NullPointerException
at simplifiedTextAlignment.DatasetAlignment.AlignNewselaDataset.main(AlignNewselaDataset.java:94)
... 5 more
from simptextalign.
Can you please share with me the command that you executed?
from simptextalign.
C:\Users.....\SimpTextAlign-master\jars>java -jar AlignNewselaDataset.jar -i inFolder -o outFolder
I left the other arguments to the default and I have 2 folders in the same directory inFolder has a sample of Newsela articles in different simplification levels and the other is empty outFolder.
from simptextalign.
Please try to provide the inFolder and OutFolder values with absolute path, e.g.:
C:\Users.....\SimpTextAlign-master\jars>java -jar AlignNewselaDataset.jar -i C:/data/newsela/ -o C:/data/output
from simptextalign.
I will try and just to make sure the output fplder is an empty folder and the input has text files of Newsela articles in different levels, right?
from simptextalign.
I've tried it, but still got the same error. I think I have to change the baseDir in the source code, but is it the folder where Newsela articles stored or what?
from simptextalign.
Please, read the whole usage section: https://github.com/neosyon/SimpTextAlign#usage
There are several command arguments which are mandatory, i.e., all the ones without {}
java -jar AlignNewselaDataset.jar -i inFolder -o outFolder -l language -s similarityStrategy -a alignmentLevel -t alignmentStrategy {-u SubLevelalignmentStrategy} {-e embeddingsTxtFile}
This could be a valid command:
java -jar AlignNewselaDataset.jar -i C:/data/newsela/ -o C:/data/output/ -l "en" -s "C3G" -a "sentence" -t "closestSimStrategy"
from simptextalign.
It works now thank you very much.
from simptextalign.
Related Issues (7)
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 simptextalign.