diff --git a/Korpora/korpus_modu_ne.py b/Korpora/korpus_modu_ne.py index 548fd85..3a77710 100644 --- a/Korpora/korpus_modu_ne.py +++ b/Korpora/korpus_modu_ne.py @@ -78,7 +78,7 @@ def __str__(self): return self.__repr__() def __repr__(self): - return f'NamedEntityExample(attributes=(sentence={self.sentence}, tags={self.tags}, positions={self.positions})' + return f'NamedEntityExample(id={self.sentence_id}, sentence={self.sentence}, tags={self.tags}, positions={self.positions})' def document_to_examples(document): diff --git a/README.md b/README.md index 8060038..4375645 100644 --- a/README.md +++ b/README.md @@ -637,7 +637,7 @@ paths_or_dir = 'path/NIKL_NE(v1.0)' paths_or_dir = 'path/to/NIKL_NE(v1.0)/NXNE*.json' corpus = ModuNEKorpus(paths_or_dir) corpus.train[0] -# NamedEntityExample(attributes=(sentence=[횡설수설/권순활]北 ‘외화벌이’ 뜯어먹기, tags=['AF', 'PS', 'LC'], positions=[(1, 5), (6, 9), (10, 11)]) +# NamedEntityExample(id=NWRW1800000029.315.1.1, sentence=[횡설수설/권순활]北 ‘외화벌이’ 뜯어먹기, tags=['AF', 'PS', 'LC'], positions=[(1, 5), (6, 9), (10, 11)]) corpus.train[0].sentence # '[횡설수설/권순활]北 ‘외화벌이’ 뜯어먹기' corpus.train[0].tags