Code Monkey home page Code Monkey logo

pengyifan-brat's Introduction

Hi there ๐Ÿ‘‹


HZ HZ | GoogleScholar HZ | Twitter


  • ๐Ÿ”ญ Iโ€™m currently working on Biomedical Natural Language Processing. Medical Image Analysis, and Machine Learning.
  • ๐ŸŒฑ Iโ€™m currently learning everything.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate with other PIs

Github Stats

Top Langs


Languages and Tools:

pengyifan-brat's People

Stargazers

 avatar  avatar  avatar

pengyifan-brat's Issues

toString() method in BratRelation produces a wrong order of attributes

Is:
"R1 likes Arg2:T1 Arg1:T2"

Should be:
"R1 likes Arg1:T2 Arg2:T1"

The root of the problem:

public String toString() 
{
        StringBuilder sb = new StringBuilder(super.toString());
        Iterator var2 = this.getArguments().keySet().iterator();

        while(var2.hasNext()) {
            String role = (String)var2.next();
            sb.append(' ').append(role).append(':').append(this.getArgId(role));
        }

        return sb.toString();
    }

And, more specifically:

Iterator var2 = this.getArguments().keySet().iterator();

The set doesn't preserve any ordering of the key elements.
It's surprising that BratRelation class uses a HashMap internally where a simple
String[] arguments = new String[]{"Arg1", "Arg2"};
String [] values = new String[2];
and method setArgument(int, String)
would be sufficient.
Is there any known implementation of Brat that uses more than two arguments in a relation?

I'm using your Java Brat Library together with the standard "brat rapid annotation tool"
( http://brat.nlplab.org/index.html ).

The ordering of the arguments is crucial, because the "brat rapid annotation tool"
is unable to edit/ remove a relation annotation whose "Arg1" / "Arg2" are in reversed order.

Why is stanford-corenlp declared as a dependency?

I was wondering why the pom declares stanford-corenlp as a dependency. i don't see it's usage anywhere in the code? i would reduce the deploymentfile-footprint to use this library if that dependency was not used.

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.