91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 9.85MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-10-08
  • 語言: 其他
  • 標(biāo)簽: NLP??CRF??

資源簡介

中文NLP序列標(biāo)注工具。利用CRF進(jìn)行命名實體識別NER,自動標(biāo)注數(shù)據(jù)集產(chǎn)生語料庫,可以選擇BIO或者BMES標(biāo)注體系。

資源截圖

代碼片段和文件信息

#?-*-?coding:?utf-8?-*-
#?@Author:?Jie?Yang?from?SUTD
#?@Date:???2016-Jan-06?17:11:59
#?@Last?Modified?by:???Jie?????@Contact:?jieynlp@gmail.com
#?@Last?Modified?time:?2017-07-05?22:59:46
#!/usr/bin/env?python
#?coding=utf-8

from?Tkinter?import?*
from?ttk?import?*#frame?Button?Label?style?Scrollbar
import?tkFileDialog
import?tkFont
import?re
from?collections?import?deque
import?pickle
import?os.path
import?platform


class?Example(frame):
????def?__init__(self?parent):
????????frame.__init__(self?parent)
????????self.OS?=?platform.system().lower()
????????self.parent?=?parent
????????self.fileName?=?““
????????self.debug?=?False
????????self.colorAllChunk?=?True
????????self.history?=?deque(maxlen=20)
????????self.currentContent?=?deque(maxlen=1)
????????self.pressCommand?=?{‘a(chǎn)‘:u“參與者“
?????????????????????????????‘b‘:u“動作“
?????????????????????????????‘c‘:u“對象“
?????????????????????????????‘d‘:u“狀態(tài)“
?????????????????????????????‘e‘:u“時間“
?????????????????????????????‘f‘:u“地點(diǎn)“
?????????????????????????????‘g‘:u“金額“
?????????????????????????????‘h‘:u“內(nèi)容“
?????????????????????????????‘i‘:u“Transaction-方式“?
?????????????????????????????‘j‘:u“Peron-原單位“
?????????????????????????????‘k‘:u“Per-新單位“
?????????????????????????????‘l‘:u“Per-原職務(wù)“
?????????????????????????????‘m‘:u“Per-新職務(wù)“
?????????????????????????????‘n‘:u“Quantity-指標(biāo)“
?????????????????????????????‘o‘:u“Q-對比值“
?????????????????????????????‘p‘:u“Q-當(dāng)前值“
?????????????????????????????‘r‘:u“Q-變化趨勢幅度“
?????????????????????????????‘s‘:u“Q-對比時間“
?????????????????????????????‘t‘:u“Policy-影響行業(yè)“
?????????????????????????????‘u‘:u“Pol-鼓勵限制“
?????????????????????????????‘v‘:u“Project-主導(dǎo)方“
?????????????????????????????‘w‘:u“Pro-投資方“
?????????????????????????????‘x‘:u“Pro-承建方“
?????????????????????????????‘y‘:u“Pro-開工時間“
?????????????????????????????‘z‘:u“Pro-完成時間“
????????????????????????????????}
????????self.allKey?=?“abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ“
????????self.numberKey?=?“0123456789“
????????self.controlCommand?=?{‘q‘:“unTag“?‘ctrl+z‘:‘undo‘}
????????self.labelEntryList?=?[]
????????self.shortcutLabelList?=?[]
????????#?default?GUI?display?parameter
????????if?len(self.pressCommand)?>?20:
????????????self.textRow?=?len(self.pressCommand)
????????else:
????????????self.textRow?=?20
????????self.textColumn?=?5
????????self.tagScheme?=?“BMES“
????????self.onlyNP?=?False??##?for?exporting?sequence?
????????self.seged?=?True
????????self.configFile?=?“config“
????????self.entityRe?=?r‘\[\@.*?\#.*?\*\](?!\#)‘
????????self.insideNestEntityRe?=?r‘\[\@\[\@(?!\[\@).*?\#.*?\*\]\#‘
????????##?configure?color
????????self.entityColor?=?“SkyBlue1“
????????self.insideNestEntityColor?=?“l(fā)ight?slate?blue“
????????self.selectColor?=?‘light?salmon‘
????????self.maxEventId?=?0
????????self.currentEventId?=?““
????????self.textFontstyle?=?“Times“
????????self.EventIdString?=?StringVar()

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-13?10:59??YEDDA\
?????文件????????7756??2018-06-05?15:24??YEDDA\.config.un~
?????目錄???????????0??2018-06-13?10:59??YEDDA\.git\
?????文件?????????295??2018-06-05?14:19??YEDDA\.git\config
?????文件??????????73??2018-06-05?14:18??YEDDA\.git\description
?????文件??????????23??2018-06-05?14:19??YEDDA\.git\HEAD
?????目錄???????????0??2018-06-05?14:18??YEDDA\.git\hooks\
?????文件?????????478??2018-06-05?14:18??YEDDA\.git\hooks\applypatch-msg.sample
?????文件?????????896??2018-06-05?14:18??YEDDA\.git\hooks\commit-msg.sample
?????文件????????3327??2018-06-05?14:18??YEDDA\.git\hooks\fsmonitor-watchman.sample
?????文件?????????189??2018-06-05?14:18??YEDDA\.git\hooks\post-update.sample
?????文件?????????424??2018-06-05?14:18??YEDDA\.git\hooks\pre-applypatch.sample
?????文件????????1642??2018-06-05?14:18??YEDDA\.git\hooks\pre-commit.sample
?????文件????????1348??2018-06-05?14:18??YEDDA\.git\hooks\pre-push.sample
?????文件????????4898??2018-06-05?14:18??YEDDA\.git\hooks\pre-rebase.sample
?????文件?????????544??2018-06-05?14:18??YEDDA\.git\hooks\pre-receive.sample
?????文件????????1492??2018-06-05?14:18??YEDDA\.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2018-06-05?14:18??YEDDA\.git\hooks\update.sample
?????文件????????4251??2018-06-05?14:35??YEDDA\.git\index
?????目錄???????????0??2018-06-05?14:18??YEDDA\.git\info\
?????文件?????????240??2018-06-05?14:18??YEDDA\.git\info\exclude
?????目錄???????????0??2018-06-05?14:19??YEDDA\.git\logs\
?????文件?????????180??2018-06-05?14:19??YEDDA\.git\logs\HEAD
?????目錄???????????0??2018-06-05?14:19??YEDDA\.git\logs\refs\
?????目錄???????????0??2018-06-05?14:19??YEDDA\.git\logs\refs\heads\
?????文件?????????180??2018-06-05?14:19??YEDDA\.git\logs\refs\heads\master
?????目錄???????????0??2018-06-05?14:19??YEDDA\.git\logs\refs\remotes\
?????目錄???????????0??2018-06-05?14:19??YEDDA\.git\logs\refs\remotes\origin\
?????文件?????????180??2018-06-05?14:19??YEDDA\.git\logs\refs\remotes\origin\HEAD
?????目錄???????????0??2018-06-05?14:18??YEDDA\.git\objects\
?????目錄???????????0??2018-06-05?14:18??YEDDA\.git\objects\info\
............此處省略67個文件信息

評論

共有 條評論