Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amazon-science/ReFinED
/ functions
Functions
427 in github.com/amazon-science/ReFinED
⨍
Functions
427
◇
Types & classes
58
Method
run
(self)
package.py:107
Function
sharp_expr
Tries converting a lua expr into a Python expr.
src/refined/offline_data_generation/wiki_extractor.py:1759
Function
sharp_if
(extr, testValue, valueIfTrue, valueIfFalse=None, *args)
src/refined/offline_data_generation/wiki_extractor.py:1772
Function
sharp_ifeq
(extr, lvalue, rvalue, valueIfTrue, valueIfFalse=None, *args)
src/refined/offline_data_generation/wiki_extractor.py:1786
Function
sharp_iferror
(extr, test, then='', Else=None, *args)
src/refined/offline_data_generation/wiki_extractor.py:1804
Function
sharp_switch
(extr, primary, *params)
src/refined/offline_data_generation/wiki_extractor.py:1813
Function
split_interval
Split an interval into sub intervals. Start of interval is inclusive. End of interval is exclusive. If interval cannot be evenly split then t
src/refined/utilities/general_utils.py:15
Method
split_sentences
Given a text, generates (start, end) spans of sentences in the text. @param text: input text @return: list of tuple o
src/refined/doc_preprocessing/preprocessor.py:240
Function
str2bool
Helper function for allowing passing of boolean command line arguments
src/refined/offline_data_generation/clean_wikipedia.py:11
Function
string_find
(args)
src/refined/offline_data_generation/wiki_extractor.py:1429
Function
string_len
(args)
src/refined/offline_data_generation/wiki_extractor.py:1423
Function
string_pos
(args)
src/refined/offline_data_generation/wiki_extractor.py:1443
Function
string_rep
(args)
src/refined/offline_data_generation/wiki_extractor.py:1468
Function
string_replace
(args)
src/refined/offline_data_generation/wiki_extractor.py:1452
Function
string_sub
(args)
src/refined/offline_data_generation/wiki_extractor.py:1404
Function
string_sublength
(args)
src/refined/offline_data_generation/wiki_extractor.py:1415
Method
subst
(self, params, extractor, depth)
src/refined/offline_data_generation/wiki_extractor.py:451
Method
subst
Substitute value for this argument from dict :param params: Use :param extractor: to evaluate expressions for name and default.
src/refined/offline_data_generation/wiki_extractor.py:488
Method
test_date_conversion
Used for testing the date resolution code -> test cases are in TEST_DATE_MENTIONS in utilities/date_test_examples.py.
src/refined/utilities/numeric_handling/date_utils.py:246
Method
test_multi_conversion
Used for testing the date resolution code which attempts to identify the format of ambiguous date mentions from other dates in the s
src/refined/utilities/numeric_handling/date_utils.py:268
Function
test_refined_is_importable
()
test/test_refined.py:1
Method
to_file
(self, filename: str)
src/refined/training/train/training_args.py:83
Method
to_file
(self, filename: str)
src/refined/model_components/config.py:77
Method
tokenize
Tokenize text using tokenizer fast. :param text: text :return: list of tokens
src/refined/doc_preprocessing/preprocessor.py:211
Method
update_to
(self, b=1, bsize=1, tsize=None)
src/refined/offline_data_generation/preprocessing_utils.py:20
Method
upload_bytes
Upload bytes to S3. :param bytes_to_upload: bytes :param s3_bucket: s3 bucket :param s3_key: s3 key
src/refined/resource_management/aws.py:70
Function
wc
(filename: str)
src/refined/utilities/general_utils.py:250
← previous
401–427 of 427, ranked by callers