Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing parenthesis in print command #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions resumeParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def readFile(self, fileName):
return ''
pass
else:
print 'Unsupported format'
print ('Unsupported format')
return '', ''

def preprocess(self, document):
Expand Down Expand Up @@ -198,14 +198,14 @@ def preprocess(self, document):
# sentences - split on the basis of rules of grammar
return tokens, lines, sentences
except Exception as e:
print e
print(e)

def tokenize(self, inputString):
try:
self.tokens, self.lines, self.sentences = self.preprocess(inputString)
return self.tokens, self.lines, self.sentences
except Exception as e:
print e
print (e)

def getEmail(self, inputString, infoDict, debug=False):
'''
Expand All @@ -220,7 +220,7 @@ def getEmail(self, inputString, infoDict, debug=False):
matches = pattern.findall(inputString) # Gets all email addresses as a list
email = matches
except Exception as e:
print e
print (e)

infoDict['email'] = email

Expand Down Expand Up @@ -415,7 +415,7 @@ def getQualification(self,inputString,infoDict,D1,D2):
line.append(wordstr)

except Exception as e:
print traceback.format_exc()
print (traceback.format_exc())

if D1=='c\.?a':
infoDict['%sinstitute'%D1] ="I.C.A.I"
Expand All @@ -430,8 +430,8 @@ def getQualification(self,inputString,infoDict,D1,D2):
infoDict['%syear'%D1] =0
infoDict['%sline'%D1]=list(set(line))
except Exception as e:
print traceback.format_exc()
print e
print (traceback.format_exc())
print (e)


def Qualification(self,inputString,infoDict,debug=False):
Expand Down