Skip to content

Commit

Permalink
Remove predefined fields in document fix hankcs#1412
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Jan 30, 2020
1 parent 7cc641d commit 6d47d30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions hanlp/common/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ def words(self, words: List[str]):
class Document(SerializableDict):
def __init__(self) -> None:
super().__init__()
self.sentences = []
self.tokens = []
self.part_of_speech_tags = []
self.named_entities = []
self.syntactic_dependencies = []
self.semantic_dependencies = []
# self.sentences = []
# self.tokens = []
# self.part_of_speech_tags = []
# self.named_entities = []
# self.syntactic_dependencies = []
# self.semantic_dependencies = []

def __missing__(self, key):
value = []
Expand Down
2 changes: 1 addition & 1 deletion hanlp/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Author: hankcs
# Date: 2019-12-28 19:26

__version__ = '2.0.0-alpha.33'
__version__ = '2.0.0-alpha.34'

0 comments on commit 6d47d30

Please sign in to comment.