Questions tagged [part-of-speech]

Linguistic category of words

In grammar, a part of speech (also a word class, a lexical class, or a lexical category) is a linguistic category of words (or more precisely lexical items), which is generally defined by the syntactic or morphological behaviour of the lexical item in question.

From http://en.wikipedia.org/wiki/Parts_of_speech

194 questions
3
votes
1 answer

Get all possible part-of-speech tags for a word using NLTK

Some words can have more than one possible part of speech (pos) tag. E.g. 'Stick' is both a noun and a verb. The pos taggers in NLTK try to guess the correct tag based on context and return only the 1 guess. How can I instead get a list of all…
O James
  • 189
  • 1
  • 12
3
votes
0 answers

Hunspell Part-Of-Speech tagger?

Is there a way to use Hunspell as a Part-Of-Speech tagger? It's for use with C++, if Hunspell can't we'll use LanguageTool, but it involve a JVM.
VNourdin
  • 99
  • 10
3
votes
1 answer

How to Interpret NLTK Brill Tagger Rules

For the generated Brill Tagger Rule: Rule('016', 'CS', 'QL', [(Word([1, 2, 3]),'as')]) I know: 'CS' is subordinating conjunction 'QL' is qualifier I guess: [(Word([1, 2, 3]),'as')] means the condition of the rule. It stands for the word 'as' appear…
dongx
  • 1,750
  • 4
  • 17
  • 37
3
votes
1 answer

Search a string by a mix of syntactical and regex patterns

I would like to use R to search a text for patterns expressed through a mix of POS and actual strings. (I have seen this functionality in a python library here: http://www.clips.ua.ac.be/pages/pattern-search). For instance, a search pattern could…
nassimhddd
  • 8,340
  • 1
  • 29
  • 44
3
votes
1 answer

Different results performing Part of Speech tagging using Core NLP and Stanford Parser?

The Part Of Speech (POS) models that Stanford parser and Stanford CoreNlp uses are different, that's why there is difference in the output of the POS tagging performed through Stanford Parser and CoreNlp. Online Core NLP Output The/DT man/NN…
Piyush
  • 33
  • 3
3
votes
0 answers

sentiment analysis algorithm advice

I have implemented simple naive bayes classifier and k-nn for sentiment analysis. I am doing comparative study on algorithms for sentiment analysis. I want to implement one more algorithm for sentiment analysis. I have studied about maxent maximum…
3
votes
1 answer

nltk pos tag expletives

is there a way to show which words are filler words in a given text using NLTK? if not does anyone know where I can get a wordlist with english fill words? thank you SOLVED: from nltk.corpus import stopwords
Mirko
  • 67
  • 5
2
votes
1 answer

iOS nstlinguistictagger languages

I am using NSLinguisticTagger class and I want to test it for Danish language: NSString *textToAnalyse = @"Her skal du finde det tal, som mangler"; This range contains the entire string, since we want to parse it completely: NSRange stringRange =…
2
votes
2 answers

POS tagging german text using NLTK

I would like to use NLTK for pos tagging german texts. I found this question and this project. Both look quite complicated and I cannot find some NLTK documentation about how to train pos taggers. Any hint? I'm looking for the most simple way to put…
Achim
  • 15,415
  • 15
  • 80
  • 144
2
votes
1 answer

How to define pos_pattern for extracting nouns followed by zero or more sequence of nouns or adjectives for KeyphraseCountVectorizer?

I'm trying to extract Arabic keywords from tweets. I'm using keyBERT with KeyphraseCountVectorizer vectorizer = KeyphraseCountVectorizer(pos_pattern='< N.*>*') I'm trying to write more custom pos patterns regExp to select nouns followed by zero or…
2
votes
0 answers

Is it possible to find uncertainties of spaCy token dependencies?

I am using spaCy in order to match text against certain dependency patterns. I'm facing the problem that my DependencyParser gives different results even in simple sentences when a single word (of same ground-true POS-Tag) is changed. E.g. 'The…
Lukas
  • 21
  • 1
2
votes
1 answer

Convert words between part of speech, when wordnet doesn't do it

There are a lot of Q&A about part-of-speech conversion, and they pretty much all point to WordNet derivationally_related_forms() (For example, Convert words between verb/noun/adjective forms) However, I'm finding that the WordNet data on this has…
Greg Nelson
  • 67
  • 1
  • 7
2
votes
2 answers

Calculate frequency of function words

I would like to calculate the frequency of function words in Python/NLTK. I see two ways to go about it : Use Part-Of-Speech tagger and sum up on POS tags which constitute to function words Create a list of function words and perform a simple look…
Dexter
  • 11,311
  • 11
  • 45
  • 61
2
votes
1 answer

How to output words above text in QTextEdit

I have a structure with two members: word:string and pos:int (part of speech). And I want to output words with their pos above in QTextEdit like this Is this even possible or it's easier to make colorful font and background with…
T1v1
  • 37
  • 7
2
votes
2 answers

Finding whether or not, a word is on the dependency path of two entities with spaCy

I'm working on a nlp problem, given a sentence with two entities I need to generate boolean indicating for each word if it stands on the dependency path between those entities. For example: 'A misty < e1 >ridge< /e1 > uprises from the < e2 >surge<…
Valentin Macé
  • 1,150
  • 1
  • 10
  • 25
1 2
3
12 13