Exemplo n.º 1
0
 def extract_entities(self, *path):
     # Using a contract path, it extracts the entities and their nicknames, if it exists.
     if path:
         self.path = path[0]
     self.entities, self.nicknames = extract_parties(self.path)
     print "Entitites", self.entities
     print "nicknames", self.nicknames
Exemplo n.º 2
0
 def extract_entities(self, *path):
     # Using a contract path, it extracts the entities and their nicknames, if it exists.
     if path:
         self.path = path[0]
     #altered: added scnlp as argument for party identification function
     self.entities, self.nicknames = extract_parties(self.path)
     print "Entitites", self.entities
     print "nicknames", self.nicknames
 def extract_entities(self, path):
     # Using a contract path it extracts the entities and their nicknames, if it exists.
     try:
         print "Extracting contract entities and nicknames."
         self.entities, self.nicknames = extract_parties(path)
         if self.entities:
             print "Entities found: ", self.entities
         if self.nicknames:
             print "Nicknames found: ", self.nicknames
     except:
         print "The extractor can't find neither entities nor nicknames"
 def extract_entities(self, path):
     # Using a contract path it extracts the entities and their nicknames, if it exists.
     try:
         print "Extracting contract entities and nicknames."
         self.entities, self.nicknames = extract_parties(path)
         if self.entities:
             print "Entities found: ", self.entities
         if self.nicknames:
             print "Nicknames found: ", self.nicknames
     except:
         print "The extractor can't find neither entities nor nicknames"
 def extract_entities(self, *path):
     # Using a contract path, it extracts the entities and their nicknames, if it exists.
     if path:
         self.path = path[0]
     self.entities, self.nicknames = extract_parties(self.path)