Comments (8)
Hello,
thank you for using cassis and reporting this issue. Can you tell me which version you are using and send me a minimal typesystem and CAS which triggers the bug?
from dkpro-cassis.
uima.cas.TOP
doesn't have a feature called sofa
- it is only introduced by uima.cas.AnnotationBase
.
from dkpro-cassis.
Thx for fast reply,
I will assemble a minimal typesystem.
Meanwhile, with regard to @reckart, it should not be an AttributeError, that Type uima.cas.TOP
doesn't have an attribute sofa
.
( In this case, as far as I can see, in Cas.add_annotations
if hasattr(annotation, "sofa"):
should be False
)
from dkpro-cassis.
Hi @jcklie,
I'm using dkpro-cassis version 0.1.1.
Attached to this post is a TypesSystem and a XMI (extended filename by .txt to support upload).
Deserializing the XMI raises the AttributeError.
Thx
TypeSystem.xml.txt
Example.cas.xmi.txt
from dkpro-cassis.
In 0.2.0-rc1, this works for me except that you redefine DocumentAnnotation
, which I need to fix (see #12).
from dkpro-cassis.
Ah, ok. All good now.
Thank you.
from dkpro-cassis.
I will fix #12 this week or so and then you can try the next release candidate.
from dkpro-cassis.
appreciate!
from dkpro-cassis.
Related Issues (20)
- while serializing CAS to xmi: AttributeError: 'str' object has no attribute 'elements' HOT 8
- cassis 0.7.3
- Error parsing certain JSONs with embedded type system
- Use a cache for typesystem.is_instance_of() HOT 3
- GitHub Actions builds do not run due to missing Python version
- Merging type systems breaks consistency
- Unable to rely on a feature of a custom layer for annotation HOT 3
- Cas.add() should be able to accept multiple feature structures HOT 1
- Cannot deserialize from JSON Cas if child type comes before super type
- uima.tcas.DocumentAnnotation not predefined when deserializing from JSON HOT 3
- Function to rename Views
- JSON CAS parsing does not handle DocumentAnnotation properly
- Types with array range break JSON typesystem parsing
- Allow reading JSON CASes with out-of-order SofaFSes
- Specific type of array elements in element FS is not retained
- Can not add annotations to characters not right next to punctuation marks for Chinese HOT 2
- Relation creation between two entities HOT 2
- Speed up load_cas_from_xmi by improving offset_mapping and sofaString setter HOT 1
- When a type cannot be found try suggesting another type with a similar name
- Relax dependency on attrs
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 dkpro-cassis.