Comments (6)
closed by #14
from pympi.
Thanks for the feedback. There is no such way I think. However, one could add it.
I haven't been working on this for quite some time so I will have to delve into the matter again and could use all the help to speed things up. I'll try to be back at you asap.
from pympi.
Thanks for reply! Take your time! I usually use R when I work with ELAN files, but if I need to create or populate new tiers I've often relied to pympi anyway. All in all it is very useful package, thanks for great work!
Kind of use cases I would wish to do with pympi are, for example, taking the transcription tier, tokenizing it and writing the tokens into new symbolic subdivision tier (the example above). Or then taking the tokens, sending those to a morphological analysator, and then writing the result into new tier below. Now pympi has not been used in this, but I would be more than happy to shift into it in this scenario too, as it could be more generic approach than what my project has now. I can send you the script my colleagues are writing, but it isn't yet online, so I can't link to it directly.
This is the kind of structure I use:
So everything has symbolic subdivision on word, lemma, pos and morph tiers, and their references point always to the one above. I guess the main change would be to have the ability to specify how the new annotations are added, following the demands of the stereotype used. Maybe this is already somehow taken into account, it is very possible I don't use pympi correctly!
from pympi.
I just added the script my colleagues and I have been using into this repository, there are also links to few papers where we have described the workflow:
https://github.com/langdoc/elan-fst
So in principle it has two distinct parts, one is reading and writing into ELAN, and another is to send tokens to morphological analysator and parsing the output. We have quite clear plans how to work further with the analysator part, but I'm just thinking that rewriting the ELAN manipulation part with pympi could make it more generalizable and compact. Just adding this information here as it connects to what I was describing earlier in this issue.
from pympi.
Hi! I just would like confirm if this feature works now? I have updated pympi, but I still get the error ValueError: There is no annotation to reference to.
when I try to add child annotations at deeper levels. Is there an example somewhere how this can be done correctly? Thanks!
from pympi.
Hi, PR #14 didn't solve it apparently I'm afraid. I'll reopen this one. I'm happy to accepts PR's to fix this.
from pympi.
Related Issues (20)
- Difference in number of removed annotations HOT 1
- Script working fine until I save file in ELAN 5.9 and EAF file gets corrupted HOT 12
- EAF 3.0 file format support HOT 2
- Extracting new object
- to_textgrid fails for Eaf from sample file HOT 3
- Add CI or test scripts to the repo to test various python versions HOT 1
- Fix failing tests HOT 4
- Add argument to suppress "unknown version" warnings
- Support pathlib.Path objects in addition to str file paths
- Which minimal python version should we target?
- Release version 1.7 has a lower version number than the previous release (1.69) HOT 4
- Timestamp type not checked when added
- Parsing unknown version of ELAN spec HOT 1
- Can you please update the version for pip install? HOT 2
- eaf_from_chat hang HOT 3
- Standardise arguments
- TextGrids cannot be read if they contain special/IPA characters HOT 1
- Associating a controlled vocabulary with a linguistic type?
- Compatibility with ACT R library HOT 2
- problem with to_eaf
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 pympi.