Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 664 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 664 Bytes

Chunker

This is the module for using the pre-trained syntax analysis system for the russian language. It is based on Conditional Random Fields and morpho-tagger from deeppavlov

This module provides two ways of chunking: for txt and for the sentences You can download the model here

f = Chunker('path to the crf model')

For txt use the function:

chunked_text = f.predict_file("myfile.txt")

For the sentence use:

chunked_sentence = f.predict_sentence("Какие красивые деревья!")