Beispiel #1
0
def dirty_json(doc, tagger=None):
    """ Returns the annotated and clean version of the document.

	:param doc: json string without cleansed text or annotations
	:type doc: str

	:param tagger: A pos tagger. 
	:type tagger: Tagger

	:returns: dict
	"""
    return clean_dict(html.clean_doc(json.loads(doc)), tagger=tagger)
Beispiel #2
0
def dirty_dict(doc, tagger=None):
    """ Make clean a dictionary and annotate.

	:param doc: A dictionary without cleansed_text added
	:type doc: dict

	:param tagger: A pos tagger. 
	:type tagger: Tagger

	:returns: dict
	"""

    return clean_dict(html.clean_doc(doc), tagger=tagger)