I need a part of speech tagger that does not just return the optimal tag sequence for a given sentence, but that returns the n-best tag sequences. So for 'time flies like an arrow', it could return both NN VBZ IN DT NN and NN NNS VBP DT NN for example, ordered in terms of their probability. I need to train the tagger using my own tag set and sentence examples, and I would like a tagger that allows different features of the sentence to be engineered. If one of the nltk taggers had this functionality, that would be great, but any tagger that I can interface with my Python code would do. Thanks in advance for any suggestions.
NLTK (or other) Part of speech tagger that returns n-best tag sequences
225 Views Asked by user3449494 At
1
There are 1 best solutions below
Related Questions in NLTK
- Issue in loading model in recommender system using streamlit
- The chatbot code works well on the console but not when deployed on the website
- Comparison between stemmiation and lemmatization
- How can i get the first content of a python synsets list?
- NameError: name 'sense2vec_instance' is not defined
- Problems with training a model with pytorch
- How I get precision, recall, and f1-score from nltk.naivebayesclassifier?
- removing paywall language from piece of text (pandas)
- How do I randomize responses?
- Why is my NLTK bot not working correctly?
- Inserting XML tags at specific part of file without disrupting format
- Why does KMeansClusterer from NLTK take a long time to execute with my user-item rating matrix?
- Shorten product title to a specific length using python nlp libraries
- NLTK, SSL Certificate Error, No module named pip
- how to include NLTK wordnet in a PYPI package
Related Questions in POS-TAGGER
- Custom spaCy tagger to tag all words that are in a dictionary
- Unable to load a model from hugging face
- How can I enhance morphological information for English models in spaCy?
- Is there something wrong with my Viterbi algorithm or is it an issue of underflow?
- PoS Tagging in QA Model
- Creating a language model from scratch with spaCy with POS-tagged corpus and word embeddings
- Return list of sentences with a particular subject
- how to apply nltk.pos_tag() for ngrams
- How to get pos-tag lemmatiser to iterate through df
- Apply POS tag to nested list
- How to lemmatize pos tagged column in dataframe
- how to get only the nouns from a sentence
- How to extract phrases from text using specific noun-verb-noun NLTK PoS tag patterns?
- Lemmatizer/PoS-tagger for italian in Python
- Reverse from POS tagging to sentence using pandas
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 # Hahtags
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?
I would recommend having a look at spaCy. From what I have seen, it doesn't by default allow you to return the top-n tags, but it supports creating custom pipeline components.
There is also an issue on Github where exactly this is discussed, and there are some suggestions on how to implement it relatively quickly.