Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Clearailhc/ACE2005-toolkit
/ functions
Functions
41 in github.com/Clearailhc/ACE2005-toolkit
⨍
Functions
41
◇
Types & classes
2
↓ 7 callers
Method
read
Load text in the given format (conllu|horizontal|vertical) and return list of ufal.udpipe.Sentence-s.
udpipe.py:22
↓ 6 callers
Method
write
Write given ufal.udpipe.Sentence-s in the required format (conllu|horizontal|vertical).
udpipe.py:51
↓ 3 callers
Function
compare_string_without_space
(src_words, tgt_words, ignore_punc=False)
extract.py:80
↓ 3 callers
Function
find_span_offset
(sentences, text, text_start, text_end, model, lang)
extract.py:89
↓ 3 callers
Function
modify_files
(opt, split)
extract.py:533
↓ 3 callers
Function
process_data
(opt, model, filenames, split)
format.py:94
↓ 3 callers
Function
read_files
(split)
format.py:43
↓ 3 callers
Method
tokenize
Tokenize the text and return list of ufal.udpipe.Sentence-s.
udpipe.py:15
↓ 2 callers
Method
_read
(self, text, input_format)
udpipe.py:29
↓ 2 callers
Function
find_subspan_offset
(sent, offset, text, text_start, text_end, model)
extract.py:229
↓ 2 callers
Function
load_file_list
(language='en', name='train')
transform.py:13
↓ 2 callers
Method
parse
Parse the given ufal.udpipe.Sentence (inplace).
udpipe.py:47
↓ 1 callers
Function
check_duplicate_files
(train, dev, test)
format.py:25
↓ 1 callers
Function
correct_entities
(list_of_entity, sentences, lang, model)
extract.py:342
↓ 1 callers
Function
correct_events
(list_of_events, list_of_entities, sentences, lang, model)
extract.py:426
↓ 1 callers
Function
correct_relations
(list_of_relations, list_of_entities, sentences, lang, model)
extract.py:493
↓ 1 callers
Function
data_split
(all_data, rate=[0.8, 0.1, 0.1])
transform.py:143
↓ 1 callers
Function
get_BIO
(path, type_name, save=False)
build_BIO.py:107
↓ 1 callers
Function
get_entity_tag
get entity_tag for each token from data (not BIO type)
build_BIO.py:16
↓ 1 callers
Function
get_event_tag
(raw_data)
build_BIO.py:54
↓ 1 callers
Function
get_file_names
(dirpath)
extract.py:23
↓ 1 callers
Function
get_filenames
Check if file exists, return a file list for train/dev/test split.
format.py:40
↓ 1 callers
Function
get_sentence_token
get sentences token from data
build_BIO.py:8
↓ 1 callers
Function
load_conllu
(conllu_file)
extract.py:37
↓ 1 callers
Function
load_json
(json_file)
extract.py:31
↓ 1 callers
Function
load_processed_data
(file_list, language='English', name='train')
transform.py:23
↓ 1 callers
Function
main
(args)
format.py:132
↓ 1 callers
Function
main
(args)
extract.py:584
↓ 1 callers
Method
parse_entity_tag
(node)
ace_parser.py:25
↓ 1 callers
Method
parse_event_tag
(node)
ace_parser.py:79
↓ 1 callers
Method
parse_relation_tag
(node)
ace_parser.py:49
↓ 1 callers
Function
parse_sgm
(model, sgm_path)
format.py:69
↓ 1 callers
Method
parse_value_timex_tag
(node)
ace_parser.py:111
↓ 1 callers
Function
parse_xml
(xml_path)
format.py:85
↓ 1 callers
Method
parse_xml
(self, xml_path)
ace_parser.py:11
↓ 1 callers
Function
print_count
(data)
transform.py:127
↓ 1 callers
Function
save_data
(data, path)
transform.py:122
↓ 1 callers
Method
tag
Tag the given ufal.udpipe.Sentence (inplace).
udpipe.py:43
Method
__init__
(self, path)
ace_parser.py:5
Method
__init__
Load given model.
udpipe.py:9
Function
count_type
统计每个事件类型的数目
transform.py:72