Comments (9)
Could you give me an example of the aspect you're describing? Thanks.
from nlp4j-old.
I am building UIMA wrappers for NLP4J in DKPro Core. Here it is useful to check if
- a) the wrapper already supports all the features used by a model, e.g. to throw an exception if a model uses a feature in a feature template for which no conversion UIMA<->NLP4J has been implemented yet
- b) the features actually have been annotated in the document -, e.g. to throw an exception of the NLP4J dependency parser is invoked without first having annotated POS.
See for example:
- https://github.com/dkpro/dkpro-core/blob/master/dkpro-core-nlp4j-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/nlp4j/internal/EmoryNlpUtils.java#L79
- https://github.com/dkpro/dkpro-core/blob/master/dkpro-core-nlp4j-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/nlp4j/internal/EmoryNlpUtils.java#L101
- https://github.com/dkpro/dkpro-core/blob/master/dkpro-core-nlp4j-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/nlp4j/Nlp4JDependencyParser.java#L206
from nlp4j-old.
Got it; I'll work on this for the next version as well.
from nlp4j-old.
Is this implemented in 1.1.0? It seems there is still no accessor method.
from nlp4j-old.
Not yet, 1.1.0 release was not planned but I found a way of reducing the models, which was asked by so many people, so decided to make an early release. I'll make a minor release (possibly, 1.1.1) for this change. Thanks for reminder.
best,
Jinho
from nlp4j-old.
Would something like this work for you?
https://github.com/emorynlp/nlp4j-core/blob/master/src/main/java/edu/emory/mathcs/nlp/component/template/feature/FeatureTemplate.java#L80
https://github.com/emorynlp/nlp4j-core/blob/master/src/main/java/edu/emory/mathcs/nlp/component/template/feature/FeatureTemplate.java#L85
https://github.com/emorynlp/nlp4j-core/blob/master/src/main/java/edu/emory/mathcs/nlp/component/template/feature/FeatureTemplate.java#L90
Please let me know if you need more methods. I'm going to make the 1.1.1 release with this change once this gets resolved. Thanks!
best,
Jinho
from nlp4j-old.
That should be working just nicely. Do you have a Maven repo with SNAPSHOT builds somewhere?
from nlp4j-old.
I'm pushing a new release with this change now; will make the release note in few minutes.
from nlp4j-old.
I'm closing this issue; please let me know if more things come up. Thanks.
from nlp4j-old.
Related Issues (20)
- Part-of-Speech Tagging example HOT 1
- only POS tagger HOT 4
- ArrayIndexOutOfBoundException in NER Training HOT 4
- Adding new values to Named Entity. HOT 5
- StringIndexOutOfBoundsException HOT 1
- How do you use the POS tagger? HOT 2
- Are components reentrant? Can components be cloned? HOT 2
- Does the dependency parser 'depend' on the named entity tagger? HOT 1
- Garbage tokens? HOT 2
- Dep parser appears to produce multiple nodes with the head of the tree as the root. HOT 1
- Universal Dependencies HOT 10
- CLI for Eval? HOT 2
- Infinite recursion in AbstractNLPDecoder.createTSVReader() HOT 2
- slf4j would be more flexible than raw log4j HOT 6
- Two root nodes from one sentence to the DP, any advice? HOT 5
- POS tagger model takes time to load HOT 2
- Exception reading dependency model HOT 1
- How to speed up the dependency parser by reworking one method HOT 2
- tsv option not working HOT 1
- Nlp Training for NER HOT 1
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 nlp4j-old.