You are viewing documentation for our open source project which is maintained by the community. If you want to get started building assistants with Rasa please check out our latest [documentation here](/content/docs/index.html).

#### load_data [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/shared/nlu/training_data/loading/#load_data "Direct link to heading")
```python
def load_data(resource_name: Text,
               language: Optional[Text] = "en") -> "TrainingData":
    """Load training data from disk.

Merges them if loaded from disk and multiple files are found."""
```

#### guess_format [#](https://legacy-docs-oss.rasa.com/docs/rasa/reference/rasa/shared/nlu/training_data/loading/#guess_format "Direct link to heading")
```python
def guess_format(filename: Text) -> Text:
    """Applies heuristics to guess the data format of a file.

**Arguments**:
    - `filename` - file whose type should be guessed

**Returns**:
    Guessed file format."""
```
