google-code-export / dkpro-core-asl

Automatically exported from code.google.com/p/dkpro-core-asl
0 stars 0 forks source link

Problem with CoreferenceChain and UIMA 2.7.0 no-duplicate-FS-in-index #581

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm running into an unexpected situation with the changes from this issue (I 
suppose).
I have modelled a linked list with an explicit head pointer in the following 
way:

CoreferenceChain extends AnnotationBase {
  CoreferenceLink first;
}

CoreferenceLink extends Annotation {
  CoreferenceLink next;
}

With the new behavior, apparently there is a problem having multiple Heads to 
the CAS. When I set ALLOW_DUP_ADD_TO_INDEXES to "true", all is fine, but with 
the new behavior, I get failing unit tests in DKPro Core.

https://issues.apache.org/jira/browse/UIMA-3399

Original issue reported on code.google.com by richard.eckart on 20 Jan 2015 at 9:28

GoogleCodeExporter commented 9 years ago
Locally allow duplicates in the test case to avoid failure - however, this 
cannot stay as is, because it will break Coreference all over the place!

    @Before
    public void setup()
    {
        // Workaround for change in UIMA 2.7.0 - this cannot stay as it is!!!
        // https://code.google.com/p/dkpro-core-asl/issues/detail?id=581
        System.setProperty(FSIndexRepositoryImpl.ALLOW_DUP_ADD_TO_INDEXES, "true");
    }

Original comment by richard.eckart on 20 Jan 2015 at 9:47

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r3284.

- Temporary workaround until we know if we need to resolve this or UIMA.

Original comment by richard.eckart on 20 Jan 2015 at 9:48

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r3285.

- Temporary workaround until we know if we need to resolve this or UIMA.

Original comment by richard.eckart on 20 Jan 2015 at 2:42

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 22 Jan 2015 at 10:37