textflint.input_layer.component.field.cn_text_field¶
CnTextField Class¶
-
class
textflint.input_layer.component.field.cn_text_field.CnTextField(field_value, mask=None)[source]¶ Bases:
textflint.input_layer.component.field.field.FieldA helper class that represents input string that to be modified.
- Parameters
or list field_value (str) – the value of the field.
mask (int) – mask label.
-
cn_processor= <textflint.common.preprocess.cn_processor.CnProcessor object>¶
pos tags fiction
- Returns
ner tags
-
class
textflint.input_layer.component.field.cn_text_field.CnProcessor(*args, **kwargs)[source]¶ Bases:
objectText Processor class implement NER.
-
static
tokenize(sent)[source]¶ tokenize fiction
- Parameters
sent (str) – the sentence need to be tokenized
- Returns
list.the tokens in it
-
static