Git Product home page Git Product logo

Comments (6)

MihaiSurdeanu avatar MihaiSurdeanu commented on July 26, 2024

Can you please send your complete class and build.sbt file?
Alternatively, can you try to build your example based on edu.arizona.sista.processors.ProcessorExample?

from processors.

marcovzla avatar marcovzla commented on July 26, 2024

Seems like you are using java. The method you are trying to call has a second argument that defaults to false:

def annotate(text:String, keepText:Boolean = false)

Java doesn't seem to recognize the default argument. Can you try setting it explicitly?

Document doc = proc.annotate("John Smith went to China. He visited Beijing, on January 10th, 2013.", false);

from processors.

adam-faulkner avatar adam-faulkner commented on July 26, 2024

@marcovzla That did it! Thanks :-)

Maybe correct that line in the Java example given in README.md?

from processors.

marcovzla avatar marcovzla commented on July 26, 2024

@adam-faulkner Great!
@MihaiSurdeanu maybe we should include a java example in the readme for issues like this?

from processors.

hickst avatar hickst commented on July 26, 2024

There is a java example already. It is probably what Mr. Faulkner was using:

https://github.com/sistanlp/processors#using-processors-from-java

from processors.

marcovzla avatar marcovzla commented on July 26, 2024

I see, I will add the missing argument.

from processors.

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.