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
|
Public Member Functions | |
def | __init__ (self, scraperLangDetectProperty) |
def | process (self, response, log=None) |
def | getLangTags (self) |
def | getLangTagsNames (self) |
def | getSummaryLang (self, response, log=None) |
Static Public Member Functions | |
def | langDetect (incomeBuf, convertToFullName=True, log=None) |
Public Attributes | |
prefix | |
suffix | |
tagsList | |
maps | |
size | |
detectedLangs | |
Static Public Attributes | |
string | MSG_ERROR_LANG_DETECT = "Language detection failed. Error: %s" |
string | PROPERTY_OPTION_PREFIX = "prefix" |
string | PROPERTY_OPTION_SUFFIX = "suffix" |
string | PROPERTY_OPTION_TAGS = "tags" |
string | PROPERTY_OPTION_MAPS = "maps" |
string | PROPERTY_OPTION_SIZE = "size" |
string | DEFAULT_VALUE_OPTION_PREFIX = "" |
string | DEFAULT_VALUE_OPTION_SUFFIX = "_lang" |
list | DEFAULT_VALUE_OPTION_TAGS = [] |
dictionary | DEFAULT_VALUE_OPTION_MAPS |
int | DEFAULT_VALUE_OPTION_SIZE = 1024 |
string | DEFAULT_VALUE_SUMMARY_LANG = "en" |
string | DEFAULT_VALUE_LANG_MAPPING = '*' |
list | DEFAULT_VALUE_TAGS_NAMES |
string | TAGS_EXTENDED_VALUE_ALL = "*" |
string | TAGS_EXTENDED_VALUE_SUMMARY = "&" |
string | SCRAPER_RESULT_TAG_OPTION_DATA = "data" |
string | SCRAPER_RESULT_TAG_OPTION_LANG = "lang" |
string | SCRAPER_RESULT_TAG_OPTION_SUMMARY_LANG = "summary_lang" |
Private Member Functions | |
def | __makeTagName (self, tagName) |
def | __retTagsText (self, tagName, response) |
def | __truncateBuffer (self, text, log=None) |
def | __setLangField (self, text, tagName, fieldName, response, log=None) |
def | __langMapping (self, lang) |
def | __isExistValue (self, src, val) |
Definition at line 20 of file ScraperLangDetector.py.
def dc_processor.ScraperLangDetector.ScraperLangDetector.__init__ | ( | self, | |
scraperLangDetectProperty | |||
) |
Definition at line 56 of file ScraperLangDetector.py.
|
private |
|
private |
Definition at line 194 of file ScraperLangDetector.py.
|
private |
|
private |
Definition at line 121 of file ScraperLangDetector.py.
|
private |
Definition at line 173 of file ScraperLangDetector.py.
|
private |
Definition at line 149 of file ScraperLangDetector.py.
def dc_processor.ScraperLangDetector.ScraperLangDetector.getLangTags | ( | self | ) |
def dc_processor.ScraperLangDetector.ScraperLangDetector.getLangTagsNames | ( | self | ) |
Definition at line 280 of file ScraperLangDetector.py.
def dc_processor.ScraperLangDetector.ScraperLangDetector.getSummaryLang | ( | self, | |
response, | |||
log = None |
|||
) |
Definition at line 306 of file ScraperLangDetector.py.
|
static |
Definition at line 101 of file ScraperLangDetector.py.
def dc_processor.ScraperLangDetector.ScraperLangDetector.process | ( | self, | |
response, | |||
log = None |
|||
) |
Definition at line 231 of file ScraperLangDetector.py.
|
static |
Definition at line 43 of file ScraperLangDetector.py.
|
static |
Definition at line 35 of file ScraperLangDetector.py.
|
static |
Definition at line 32 of file ScraperLangDetector.py.
|
static |
Definition at line 40 of file ScraperLangDetector.py.
|
static |
Definition at line 33 of file ScraperLangDetector.py.
|
static |
Definition at line 34 of file ScraperLangDetector.py.
|
static |
Definition at line 41 of file ScraperLangDetector.py.
|
static |
Definition at line 45 of file ScraperLangDetector.py.
dc_processor.ScraperLangDetector.ScraperLangDetector.detectedLangs |
Definition at line 62 of file ScraperLangDetector.py.
dc_processor.ScraperLangDetector.ScraperLangDetector.maps |
Definition at line 60 of file ScraperLangDetector.py.
|
static |
Definition at line 22 of file ScraperLangDetector.py.
dc_processor.ScraperLangDetector.ScraperLangDetector.prefix |
Definition at line 57 of file ScraperLangDetector.py.
|
static |
Definition at line 29 of file ScraperLangDetector.py.
|
static |
Definition at line 26 of file ScraperLangDetector.py.
|
static |
Definition at line 30 of file ScraperLangDetector.py.
|
static |
Definition at line 27 of file ScraperLangDetector.py.
|
static |
Definition at line 28 of file ScraperLangDetector.py.
|
static |
Definition at line 51 of file ScraperLangDetector.py.
|
static |
Definition at line 52 of file ScraperLangDetector.py.
|
static |
Definition at line 53 of file ScraperLangDetector.py.
dc_processor.ScraperLangDetector.ScraperLangDetector.size |
Definition at line 61 of file ScraperLangDetector.py.
dc_processor.ScraperLangDetector.ScraperLangDetector.suffix |
Definition at line 58 of file ScraperLangDetector.py.
|
static |
Definition at line 48 of file ScraperLangDetector.py.
|
static |
Definition at line 49 of file ScraperLangDetector.py.
dc_processor.ScraperLangDetector.ScraperLangDetector.tagsList |
Definition at line 59 of file ScraperLangDetector.py.