Browse Source

update document in fastNLP/core/const.py

tags/v0.4.10
Yige Xu 5 years ago
parent
commit
e37e1e2a0e
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      fastNLP/core/const.py

+ 4
- 3
fastNLP/core/const.py View File

@@ -1,6 +1,5 @@
"""
.. todo::
doc
r"""
fastNLP包当中的field命名均符合一定的规范,该规范由fastNLP.Const类进行定义。
"""

__all__ = [
@@ -50,11 +49,13 @@ class Const:
@staticmethod
def RAW_WORDS(i):
"""得到第 i 个 ``RAW_WORDS`` 的命名"""
i = int(i) + 1
return Const.RAW_WORD + str(i)
@staticmethod
def RAW_CHARS(i):
"""得到第 i 个 ``RAW_CHARS`` 的命名"""
i = int(i) + 1
return Const.RAW_CHAR + str(i)


Loading…
Cancel
Save