Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: python - Custom POS tagging with NLTK
Post: python - Custom POS tagging with NLTK

Please HELP me, I want to build custom pos tagging with nltk 3.2.2,  I have tried with the following code but I am getting following errors ....... import nltk.tag, nltk.data default_tagger = nltk....
desul Homework 0 4,052 May-01-2017, 09:38 AM
    Thread: Need Your Help for small corection
Post: Need Your Help for small corection

hi, Can you tell why (NN NN NN NN ) IS NOT WORKING BELOW PROGRAM and (JJ) is only alone coming. actually, i required this pattern (jj* NN+) PLEASE COPERATE ME TO CORRECT THIS CODE class extract(obj...
desul General Coding Help 1 2,691 Apr-22-2017, 08:33 PM
    Thread: How to find exact matching string from the text
Post: RE: How to find exact matching string from the tex...

BY USING (index and find ), we able to find exact and some part of the word also. But, I want only exact . for example, s= 'Sports drinks seem to have become a norm in the fitness world. ' t= spo...
desul Homework 5 4,103 Apr-17-2017, 01:44 PM
    Thread: How to find exact matching string from the text
Post: How to find exact matching string from the text

my question here Dear ALL, Can anyone help me how to find a word or phrase that occurs in the text without using splitter command? waiting for your answer and thanks  but I need without splitting...
desul Homework 5 4,103 Apr-17-2017, 09:14 AM
    Thread: Need your small help
Post: Need your small help

HIII, I want to count a number of words that contains string a. for e.g.  a = Sophia [sophia, Sophia beautiful, smile of Sophia,  Sophia's car ] please tell me how to solve it . **huh** **huh**...
desul Homework 2 2,592 Mar-26-2017, 11:38 AM
    Thread: Need your help
Post: reducing times

HII,  actually, I am using "nltk.RegexpParser" for identify finding noun phrase, but it is taking too time. So, please tell, how can I reduce the time? or any alternative method for doing it....  tok...
desul Homework 2 3,290 Mar-24-2017, 06:47 PM
    Thread: Need your help
Post: Need your help

HII, How to extract only NP TAG from the below tree.  i need this only e.g (NP Electrical/JJ power/NN) toks = nltk.word_tokenize(line)                 postoks = nltk.tag.pos_tag(toks)             ...
desul Homework 2 3,290 Mar-24-2017, 05:38 PM
    Thread: Need your small favor
Post: Need your small favor

Hiii, How can I remove "[inside some number], (Fig. 8))from the line? I have tried by using below command but it is not working. please tell me another method for it ........ e.g. [18], (Fig. 8) l...
desul Homework 2 3,243 Mar-21-2017, 04:00 AM
    Thread: how to write a code for term that can't begin or end with a stopword
Post: how to write a code for term that can't begin or e...

Hiiiiiiiiiiiiiiiiiiiii, Need your small help for writing a code for selecting a term that can't begin or end with a stopword.... assume stopword list is there ..... is it possible to write using ...
desul Homework 3 3,788 Mar-18-2017, 02:33 PM
    Thread: Need your small help
Post: Need your small help

Dear ALL, How can I retrieve top 100 keys from the dictionary base on value? that should return key and its value.... please help me **pray** **pray** **pray** **pray**
desul Homework 7 4,939 Mar-16-2017, 12:17 PM
    Thread: need small help for simple calculation
Post: need small help for simple calculation

Dear All, how to calculate the below problem: from __future__ import division 4/6 Out[3]: 0.6666666666666666 when I am trying for this -  5/ 0=  out: ZeroDivisionError: division by zerohow ca...
desul Homework 6 4,688 Mar-09-2017, 07:30 AM
    Thread: issue on tree
Post: issue on tree

Hi,  I need to know what is wrong with this code and why I am getting errors and how can solve it...... def leaves(tag_words):     from nltk.tree import Tree     import re      pattern = r'\w+:?(?...
desul General Coding Help 5 4,968 Mar-08-2017, 04:13 AM
    Thread: Issue on text decoding and encoding problem
Post: Issue on text decoding and encoding problem

HELLO,  while reading data from the text it is not reading properly as it. Please tell me how can solve it ... sentences = nltk.sent_tokenize(texts.decode('utf-8'))  Output:u2013specificthanks for ...
desul General Coding Help 1 3,089 Mar-02-2017, 05:06 AM
    Thread: Need help for converting term into slice
Post: Need help for converting term into slice

Hi, How can write a code for converting a term into below form. e.g         'Biomedical information community' I want it should  return on  given form:   'Biomedical information community' = 'Biom...
desul General Coding Help 1 3,387 Mar-01-2017, 07:58 AM
    Thread: how to calculate frequency of word in list
Post: how to calculate frequency of word in list

Dear,   how to  calculate the frequency of the word in the list  if the word is not in the list  just return  word equals to  zero **huh** **huh** **huh** **huh** **huh**
desul General Coding Help 4 4,318 Feb-28-2017, 01:21 PM
    Thread: how can rectify error from the below code
Post: RE: how can rectify error from the below code

(Feb-28-2017, 08:45 AM)desul Wrote: Dear ALL, import numpy def gettingc1(c):     c1= []     mystr = c.strip(' ').split()     for i in mystr[:1]:         c1.append(i)         return c1      def f...
desul Data Science 5 5,036 Feb-28-2017, 09:39 AM
    Thread: how can rectify error from the below code
Post: how can rectify error from the below code

Dear ALL, import numpy def gettingc1©:     c1= []     mystr = c.strip(' ').split()     for i in mystr[:1]:         c1.append(i)         return c1      def frequency1(c1, d):     from collecti...
desul Data Science 5 5,036 Feb-28-2017, 08:45 AM
    Thread: how can i print two value in single line
Post: how can i print two value in single line

Dear ALL, how can I print two valueS in a single line  print(k ) print(v) MY OUTPUT SHOULD BE  Ontology: 3 THANK YOU
desul Homework 8 6,174 Feb-28-2017, 06:01 AM
    Thread: how to remove none from the for loop
Post: RE: how to remove none from the for loop

(Feb-27-2017, 01:30 PM)desul Wrote: Dear all, actually,  i want only first word of the term for that i am using below code but i am getting word with "none" , how can remove it or any other techniq...
desul General Coding Help 5 8,365 Feb-27-2017, 04:11 PM
    Thread: how to remove none from the for loop
Post: how to remove none from the for loop

Dear all, c= " domain ontologies" mystr = c.split(' ')          c= [i for i in mystr[:1]]           print(c)result  Output:['domain', 'ontologies'] ['domain'] None
desul General Coding Help 5 8,365 Feb-27-2017, 01:30 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020