Browse Source

增加新的processor“

tags/v0.2.0
yh yunfan 5 years ago
parent
commit
7d97e9365d
3 changed files with 1 additions and 1 deletions
  1. +0
    -0
      reproduction/pos_tag_model/pos_io/pos_reader.py
  2. +1
    -1
      reproduction/pos_tag_model/process/pos_processor.py
  3. +0
    -0
      reproduction/pos_tag_model/testcontext.py

+ 0
- 0
reproduction/pos_tag_model/pos_io/pos_reader.py View File


+ 1
- 1
reproduction/pos_tag_model/process/pos_processor.py View File

@@ -66,7 +66,7 @@ class PosOutputStrProcessor(Processor):

self.word_field_name = word_field_name
self.pos_field_name = pos_field_name
self.pos = '_'
self.sep = '_'

def process(self, dataset):
assert isinstance(dataset, DataSet), "Only Dataset class is allowed, not {}.".format(type(dataset))


+ 0
- 0
reproduction/pos_tag_model/testcontext.py View File


Loading…
Cancel
Save