Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Jython 'import re' problem

Copy link to this message
Jython 'import re' problem
Offending code:

def remove_punctuation(self, token):
  punctuation = re.compile(r'[-.@&$#`\'?!,></\\":;()|]')
  words = list()
  word = punctuation.sub("", token)
  if word != "":
    return word


ImportError: No module named re
Any ideas?

Russell Jurney twitter.com/rjurney [EMAIL PROTECTED] datasyndrome.com