HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
app.Utils.MLStripper Class Reference
Inheritance diagram for app.Utils.MLStripper:
Collaboration diagram for app.Utils.MLStripper:

Public Member Functions

def __init__ (self, joinGlue=' ')
 
def handle_data (self, d)
 
def get_data (self)
 

Public Attributes

 fed
 
 joinGlue
 

Detailed Description

Definition at line 1109 of file Utils.py.

Constructor & Destructor Documentation

◆ __init__()

def app.Utils.MLStripper.__init__ (   self,
  joinGlue = ' ' 
)

Definition at line 1110 of file Utils.py.

1110  def __init__(self, joinGlue=' '):
1111  super(MLStripper, self).__init__()
1112  self.reset()
1113  self.fed = []
1114  self.joinGlue = joinGlue
1115 
1116 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ get_data()

def app.Utils.MLStripper.get_data (   self)

Definition at line 1121 of file Utils.py.

1121  def get_data(self):
1122  return self.joinGlue.join(self.fed)
1123 
1124 
1125 # # function extracts text from html content, strips all tags
1126 # @param htmlText incoming raw html
1127 # @param stripComment is strip comment or not
1128 # @param stripScript is strip script or not
1129 # @return inner html text
Definition: join.py:1

◆ handle_data()

def app.Utils.MLStripper.handle_data (   self,
  d 
)

Definition at line 1117 of file Utils.py.

1117  def handle_data(self, d):
1118  self.fed.append(d)
1119 
1120 

Member Data Documentation

◆ fed

app.Utils.MLStripper.fed

Definition at line 1113 of file Utils.py.

◆ joinGlue

app.Utils.MLStripper.joinGlue

Definition at line 1114 of file Utils.py.


The documentation for this class was generated from the following file: