ckipnlp.parser package¶
-
class
ckipnlp.parser.
CkipParser
(*, logger=False, inifile=None, wsinifile=None, **options)[source]¶ Bases:
object
The CKIP sentence parsing driver.
Parameters: - logger (bool) – enable logger.
- inifile (str) – the path to the INI file.
- wsinifile (str) – the path to the INI file for CKIPWS.
- options – the options, see
ckipnlp.util.ini.create_ws_ini()
andckipnlp.util.ini.create_parser_ini()
-
apply
(text)[source]¶ Segment a sentence.
Parameters: text (str) – the input sentence. Returns: str – the output sentence. Notes
One may also call this method as
__call__()
.