ablang2 / adapter.py

Commit History

Add angle brackets back to restore output to match original format
2a109cb

hemantn commited on

Remove debug statements and angle brackets formatting - restore functionality complete
392cc77

hemantn commited on

Define get_sequences_from_anarci function directly in adapter
07257f3

hemantn commited on

Use absolute import to avoid extra_utils.py conflicts
b7fcfdb

hemantn commited on

Fix import path for get_sequences_from_anarci
bebf640

hemantn commited on

Move import inside method to avoid module-level import error
c0d7cee

hemantn commited on

Fix import error for get_sequences_from_anarci
b9f49af

hemantn commited on

Implement proper alignment functionality using ANARCI
9d902f5

hemantn commited on

Add detailed debug prints to restore method
b3cd799

hemantn commited on

Implement working restore method in HFAbRestore class
2e88277

hemantn commited on

Add debug prints to restore method and fix angle brackets formatting
e75c857

hemantn commited on

Fix HuggingFaceTokenizerAdapter to match working implementation
ea9d808

hemantn commited on

Remove HFAbRestore.restore override to use original AbRestore.restore method
0e5736d

hemantn commited on

Use original AbLang2 restore logic from restoration.py
2b25439

hemantn commited on

Add debug prints to restore method
f9eb722

hemantn commited on

Fix restore method to properly handle masked tokens
acf4b07

hemantn commited on

Revert restore method to use original AbLang2 logic
eb85d4e

hemantn commited on

Remove problematic alignment from restore method - return sequences as-is
55a4139

hemantn commited on

Add basic alignment support to restore method
de33042

hemantn commited on

Remove spaces from decoded sequences in restore method
7ca5e33

hemantn commited on

Fix decode method in restore to use original tokenizer
4b2339a

hemantn commited on

Fix tokenizer interface in HFAbRestore.restore method
53de0f7

hemantn commited on

Implement proper restore method in HFAbRestore to actually restore masked residues
d735513

hemantn commited on

Fix restore method to not add double angle brackets
1bea915

hemantn commited on

Add missing likelihood method implementation to adapter class
dec4a70

hemantn commited on

Add missing rescoding method implementation to adapter class
b1f86f0

hemantn commited on

Add missing seqcoding method implementation to adapter class
3d5a035

hemantn commited on

Force creation of utility files inline when in Hugging Face cache directory
18ddcf7

hemantn commited on

Prioritize current directory for utility files to use downloaded files from Hugging Face
3aa0051

hemantn commited on

Fix import conflicts by removing /content from sys.path and ensuring imports from cache directory
6db1bf7

hemantn commited on

Fix syntax error in inline alignment.py template
f07c732

hemantn commited on

Add inline utility file creation for missing files in Google Colab and other environments
960915a

hemantn commited on

Improve utility file copying for Google Colab and other environments
db23db1

hemantn commited on

Override _encode_sequences and _predict_logits to use HuggingFace tokenizer interface
88ddbb1

hemantn commited on

Fix tokenizer and format_seq_input to properly handle paired sequences with angle brackets
ed12887

hemantn commited on

Simplify adapter to use direct imports without package structure
056b066

hemantn commited on

Add error handling and verification for encodings.py copy operation
9c57bc9

hemantn commited on

Fix path issue for encodings.py copy operation
cec6abd

hemantn commited on

Add debugging to see why encodings.py copy is not working
c838b3c

hemantn commited on

Fix encodings.py copy condition to ensure it's always copied
44be57d

hemantn commited on

Add debugging to see what files are copied to pretrained_utils
6298f3b

hemantn commited on

Fix directory creation issue in adapter file copying
88a90b6

hemantn commited on

Restore original adapter code from AbLang2_final_version with file copying mechanism
1304b94

hemantn commited on

Fix adapter to copy utility files to cached directory when loaded from Hugging Face
7f948f6

hemantn commited on

Fix adapter.py imports to work when loaded from Hugging Face Hub cache
1f81e2b

hemantn commited on

Remove ablang2.pretrained dependency - add local format_seq_input implementation
348b92b

hemantn commited on

Integrate utility files into main repository - make self-contained
712d350

hemantn commited on

Initial commit: AbLang2 Hugging Face implementation
bb74251

hemantn commited on