code: def parse_wordnet(self,debug=False):
          '''Parses wordnet from 
          <self.file>
          '''
          synList = []
          self.milestone = 0 # to start from beginning of file
          while self.milestone < os.path.getsize(self.fileName) - 5:
              if debug:
                  print ('self.milestone', self.milestone)
              a = self.parse_synset(offset=self.milestone)
              synList.append(a)
              self.milestone = self.file.tell()
          return synLisf parse_wordnet(self,debug=False):
          '''Parses wordnet from 
          <self.file>
          '''
          synList = []
          self.milestone = 0 # to start from beginning of file
          while self.milestone < os.path.getsize(self.fileName) - 5:
              if debug:
                  print ('self.milestone', self.milestone)
              a = self.parse_synset(offset=self.milestone)
              synList.append(a)
              self.milestone = self.file.tell()
          return synList
docs: Parses wordnet from 
          <self.file>