I am trying to use the core-nlp annotation pipeline with default settings all through from tokenizing until ner_tags. I did observe that the "tokenizer" module is identifying , say "Vice President" as two individual tokens {vice,President} resulting in ner_tags identification as {o,TITLE} instead of {Vice President} and {TITLE}. How can I get the tokenizer to identify "Vice president" as one single token , that help Ner_Tags to identify titles appropriately.
How to identify n-gram before tokenization in stanford core-nlp?
362 Views Asked by Trinadh Gupta At
1
There are 1 best solutions below
Related Questions in NLP
- command line parameter in word2vec
- Annotator dependencies: UIMA Type Capabilities?
- term frequency over time: how to plot +200 graphs in one plot with Python/pandas/matplotlib?
- Stanford Entity Recognizer (caseless) in Python Nltk
- How to interpret scikit's learn confusion matrix and classification report?
- Detect (predefined) topics in natural text
- Amazon Machine Learning for sentiment analysis
- How to Train an Input File containing lines of text in NLTK Python
- What exactly is the difference between AnalysisEngine and CAS Consumer?
- keywords in NEGATIVE Sentiment using sentiment Analysis(stanfordNLP)
- MaxEnt classifier implementation in java for linguistic features?
- Are word-vector orientations universal?
- Stanford Parser - Factored model and PCFG
- Training a Custom Model using Java Code - Stanford NER
- Topic or Tag suggestion algorithm
Related Questions in TOKENIZE
- PHP split string into known tokens and remaining words add to single-worded array
- splitting a string but keeping empty tokens c++
- How to remove a custom word pattern from a text using NLTK with Python
- Chinese sentence segmenter with Stanford coreNLP
- Tokenize sentence into words, considering special characters
- Tokenised Login System - The Correct Way?
- printing the checksum of a txt file without printing the file path
- pySpark convert a list or RDD element to value (int)
- Javascript word tokenizer library with support for multiple languages (as many as possible)
- Tokenizing a phone number in C
- nltk: word_tokenize changes quotes
- Backslashes and escaping chars in Python vs Perl regexes
- How to identify n-gram before tokenization in stanford core-nlp?
- Gold POS in Stanford parser
- tokenize math expressions
Related Questions in NAMED-ENTITY-RECOGNITION
- Can I use the Stanford-nlp ner project to parse names of different formats?
- Named entity recognition with a small data set (corpus)
- Java named entity recognition library for Persons Name "Parts"
- Text parsing - date recogniser
- Named Entity Recognition - Do we need an external list to match results?
- Customised tokens annotation in R
- How to identify n-gram before tokenization in stanford core-nlp?
- How to create a custom model with my own entities
- Error loading list when adding a list to Arabic plugin gazetteer
- How the classifier on Stanford NER works?
- Search for job titles in an article using Spacy or NLTK
- NLTK Named Entity recognition for a column in a dataset
- Named Entity Extraction - for Currency
- Seven class classifier not giving desired results in StanfordNLP python
- Stanford NER is not properly extracting percentages
Related Questions in STANFORD-NLP
- "Other" Class in Stanford NLP Classifier for lines that are not related to ANY of the Trained Classes
- Tokenization by Stanford parser is slow?
- Get list of annotators in Stanford CoreNLP
- keywords in NEGATIVE Sentiment using sentiment Analysis(stanfordNLP)
- Can I use the Stanford-nlp ner project to parse names of different formats?
- Extending Stanford NER terms with new terms
- Stanford Parser - Factored model and PCFG
- Training a Custom Model using Java Code - Stanford NER
- Minipar to stanford NLP dependencies
- Lazy parsing with Stanford CoreNLP to get sentiment only of specific sentences
- to search for numeric or alphanumeric strings before or after some keywords in java
- Separately tokenizing and pos-tagging with CoreNLP
- Chinese sentence segmenter with Stanford coreNLP
- How to extract an unlabelled/untyped dependency tree from a TreeAnnotation using Stanford CoreNLP?
- How to use crossValidate of stanford classifier?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
What properties are you using to get TITLE as an NER tag? This is not one of the standard tags, and if you're using the TokensRegexNER annotator (e.g., for the
kbpannotator) multi-word titles like 'vice president' should be picked up. It works on corenlp.run at least.In general, it's not the tokenizer's job to collapse NER spans into a single mention. The tokenizer should separate 'vice' and 'president' into different tokens, both of which should be marked TITLE by an appropriate NER annotator. You may be interested in the
entitymentionannotator, which groups contiguous NER tags into NER mentions -- this would give you 'vice president' as a single mention, rather than two tokens both marked as TITLE. These mentions can be retrieved using the mentions annotation on a sentence CoreMap, or using theList<String> mention(String nerTag)orList<String> mentions()functions in the simple API.