Commit fa0e0b24 authored by Raul Sirel's avatar Raul Sirel
Browse files

Update mlp.py

parent e88815ac
Pipeline #6555 passed with stage
in 16 minutes and 12 seconds
......@@ -297,7 +297,7 @@ class MLP:
return "tokenize,pos,lemma"
def process(self, raw_text: str, analyzers: list = DEFAULT_ANALYZERS, lang=None, spans="text"):
def process(self, raw_text: str, analyzers: list = DEFAULT_ANALYZERS, lang=None, spans: str = "text"):
"""
Processes raw text.
:param: raw_text str: Text to be processed.
......@@ -360,7 +360,7 @@ class MLP:
self.logger.exception(e)
def process_docs(self, docs: List[dict], doc_paths: List[str], analyzers=DEFAULT_ANALYZERS, spans="text"):
def process_docs(self, docs: List[dict], doc_paths: List[str], analyzers=DEFAULT_ANALYZERS, spans: str = "text"):
"""
:param docs: Contains tuples with two dicts inside them, the first being the document to be analyzed and the second is the meta information that corresponds to the document for transport purposes later on.
:param doc_paths: Dot separated paths for how to traverse the dict for the text value you want to analyze.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment