mirror of
				https://github.com/QData/TextAttack.git
				synced 2021-10-13 00:05:06 +03:00 
			
		
		
		
	adding the missed docstrings for api-rework-modules
This commit is contained in:
		| @@ -21,7 +21,7 @@ copyright = "2020, UVA QData Lab" | ||||
| author = "UVA QData Lab" | ||||
|  | ||||
| # The full version, including alpha/beta/rc tags | ||||
| release = "0.3.2" | ||||
| release = "0.3.3" | ||||
|  | ||||
| # Set master doc to `index.rst`. | ||||
| master_doc = "index" | ||||
|   | ||||
| @@ -28,5 +28,4 @@ tensorflow-text==2.4.2 | ||||
| tensorflow-hub==0.12.0 | ||||
| textattack==0.3.2 | ||||
| transformers==4.9.1 | ||||
| virtualenv==20.0.18 | ||||
| pillow>=8.2.0 | ||||
| @@ -1,3 +1,8 @@ | ||||
| """ | ||||
| Attack Class  | ||||
| ============ | ||||
| """ | ||||
|  | ||||
| from collections import OrderedDict | ||||
| from typing import List, Union | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| """ | ||||
| AttackArgs Class  | ||||
| ================ | ||||
| """ | ||||
|  | ||||
| from dataclasses import dataclass, field | ||||
| import json | ||||
| import os | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| """ | ||||
| Attacker Class  | ||||
| ============== | ||||
| """ | ||||
|  | ||||
| import collections | ||||
| import logging | ||||
| import multiprocessing as mp | ||||
|   | ||||
| @@ -1,3 +1,9 @@ | ||||
| """ | ||||
| AugmenterArgs Class  | ||||
| =================== | ||||
| """ | ||||
|  | ||||
|  | ||||
| from dataclasses import dataclass | ||||
|  | ||||
| AUGMENTATION_RECIPE_NAMES = { | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| """ | ||||
| DatasetArgs Class  | ||||
| ================= | ||||
| """ | ||||
|  | ||||
| from dataclasses import dataclass | ||||
|  | ||||
| import textattack | ||||
|   | ||||
| @@ -1,3 +1,9 @@ | ||||
| """ | ||||
| ModelArgs Class  | ||||
| =============== | ||||
| """ | ||||
|  | ||||
|  | ||||
| from dataclasses import dataclass | ||||
| import json | ||||
| import os | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| """ | ||||
| Trainer Class  | ||||
| ============= | ||||
| """ | ||||
|  | ||||
| import collections | ||||
| import json | ||||
| import logging | ||||
|   | ||||
| @@ -1,3 +1,8 @@ | ||||
| """ | ||||
| TrainingArgs Class  | ||||
| ================== | ||||
| """ | ||||
|  | ||||
| from dataclasses import dataclass, field | ||||
| import datetime | ||||
| import os | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yanjun Qi
					Yanjun Qi