Exemplo n.º 1
0
def recognition(vertexs, wordnet_optimum, wordnet_all):
    return role_viterbi(vertexs,
                        wordnet_optimum,
                        hmm=PlaceTranMatrix().hmm,
                        trie=NSPatternDict().trie,
                        recognition_attr=PLACE_ATTRIBUTE,
                        tag_func=role_tag)
Exemplo n.º 2
0
def recognition(vertexs, wordnet_optimum, wordnet_all):
    return role_viterbi(vertexs, wordnet_optimum,
                        hmm=PlaceTranMatrix().hmm,
                        trie=NSPatternDict().trie,
                        recognition_attr=PLACE_ATTRIBUTE,
                        tag_func=role_tag
                        )
Exemplo n.º 3
0
def recognition(vertexs, wordnet_optimum, wordnet_all):
    # 识别角色,并进行一次维特比
    return role_viterbi(vertexs, wordnet_optimum,
                        hmm=OrgTranMatrix().hmm,
                        trie=NTPatternDict().trie,
                        recognition_attr=ORG_ATTRIBUTE,
                        tag_func=role_tag,
                        viterbi_fun=viterbi_standard
                        )
Exemplo n.º 4
0
def recognition(vertexs, wordnet_optimum, wordnet_all):
    # 识别角色,并进行一次维特比
    return role_viterbi(vertexs,
                        wordnet_optimum,
                        hmm=OrgTranMatrix().hmm,
                        trie=NTPatternDict().trie,
                        recognition_attr=ORG_ATTRIBUTE,
                        tag_func=role_tag,
                        viterbi_fun=viterbi_standard)