Git Product home page Git Product logo

Comments (9)

neosyon avatar neosyon commented on August 10, 2024

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.

nalfear avatar nalfear commented on August 10, 2024

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.

neosyon avatar neosyon commented on August 10, 2024

Can you please share with me the command that you executed?

from simptextalign.

nalfear avatar nalfear commented on August 10, 2024

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.

neosyon avatar neosyon commented on August 10, 2024

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.

nalfear avatar nalfear commented on August 10, 2024

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.

nalfear avatar nalfear commented on August 10, 2024

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.

neosyon avatar neosyon commented on August 10, 2024

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.

nalfear avatar nalfear commented on August 10, 2024

It works now thank you very much.

from simptextalign.

Related Issues (7)

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.