From 2d4700433c322d16ec0780d1701995db8a87d632 Mon Sep 17 00:00:00 2001 From: Reza Ebrahimi Date: Sat, 19 Jun 2021 02:23:12 +0300 Subject: [PATCH] Apply some markdown formatting to README.md --- README.md | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c6136c9d..2b65449f 100755 --- a/README.md +++ b/README.md @@ -5,9 +5,10 @@ # Simple Transformers -This library is based on the [Transformers](https://github.com/huggingface/transformers) library by HuggingFace. Simple Transformers lets you quickly train and evaluate Transformer models. Only 3 lines of code are needed to initialize a model, train the model, and evaluate a model. +This library is based on the [Transformers](https://github.com/huggingface/transformers) library by HuggingFace. `Simple Transformers` lets you quickly train and evaluate Transformer models. Only 3 lines of code are needed to **initialize**, **train**, and **evaluate** a model. + +**Supported Tasks:** -Supports - Sequence Classification - Token Classification (NER) - Question Answering @@ -43,28 +44,38 @@ Supports ### With Conda -1. Install Anaconda or Miniconda Package Manager from [here](https://www.anaconda.com/distribution/) +1. Install `Anaconda` or `Miniconda` Package Manager from [here](https://www.anaconda.com/distribution/) 2. Create a new virtual environment and install packages. -`conda create -n st python pandas tqdm` -`conda activate st` -If using cuda: -    `conda install pytorch>=1.6 cudatoolkit=11.0 -c pytorch` -else: -    `conda install pytorch cpuonly -c pytorch` +```bash +$ conda create -n st python pandas tqdm +$ conda activate st +``` +With using Cuda: +```bash +$ conda install pytorch>=1.6 cudatoolkit=11.0 -c pytorch +``` +Without using Cuda +```bash +$ conda install pytorch cpuonly -c pytorch +``` -3. Install simpletransformers. -`pip install simpletransformers` +3. Install `simpletransformers`. +```bash +$ pip install simpletransformers +``` #### Optional -1. Install Weights and Biases (wandb) for tracking and visualizing training in a web browser. -`pip install wandb` +1. Install `Weights` and `Biases` (wandb) for tracking and visualizing training in a web browser. +```bash +$ pip install wandb +``` ## Usage **All documentation is now live at [simpletransformers.ai](https://simpletransformers.ai/)** -Simple Transformer models are built with a particular Natural Language Processing (NLP) task in mind. Each such model comes equipped with features and functionality designed to best fit the task that they are intended to perform. The high-level process of using Simple Transformers models follows the same pattern. +`Simple Transformer` models are built with a particular Natural Language Processing (NLP) task in mind. Each such model comes equipped with features and functionality designed to best fit the task that they are intended to perform. The high-level process of using Simple Transformers models follows the same pattern. 1. Initialize a task-specific model 2. Train the model with `train_model()` @@ -73,7 +84,7 @@ Simple Transformer models are built with a particular Natural Language Processin However, there are necessary differences between the different models to ensure that they are well suited for their intended task. The key differences will typically be the differences in input/output data formats and any task specific features/configuration options. These can all be found in the documentation section for each task. -The currently implemented task-specific Simple Transformer models, along with their task, are given below. +The currently implemented task-specific `Simple Transformer` models, along with their task, are given below. | Task | Model | | --------------------------------------------------------- | ------------------------------- | @@ -219,7 +230,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
tekkkon

💻
Amit Garg

💻
caprone

🐛 -
Ather Fawaz

💻 +
Ather Fawaz

💻
Santiago Castro

📖 @@ -295,4 +306,4 @@ All the section pages of our docs can be found under `docs/_docs` directory, you None of this would have been possible without the hard work by the HuggingFace team in developing the [Transformers](https://github.com/huggingface/transformers) library. -_
Icon for the Social Media Preview made by Freepik from www.flaticon.com
_ \ No newline at end of file +_
Icon for the Social Media Preview made by Freepik from www.flaticon.com
_