## KeywordIntentClassifier Objects

### KeywordIntentClassifier

```python
@DefaultV1Recipe.register(
    DefaultV1Recipe.ComponentType.INTENT_CLASSIFIER, is_trainable=True
)

class KeywordIntentClassifier(GraphComponent, IntentClassifier):
    """Intent classifier using simple keyword matching."

# The classifier takes a list of keywords and associated intents as an input.
    # An input sentence is checked for the keywords and the intent is returned.
```

### get_default_config

```python
@staticmethod
def get_default_config() -> Dict[Text, Any]:
    """The component's default config (see parent class for full docstring)."""
```

### __init__

```python
def __init__(self, config: Dict[Text, Any],
             model_storage: ModelStorage,
             resource: Resource,
             execution_context: ExecutionContext,
             intent_keyword_map: Optional[Dict] = None) -> None:
    """Creates classifier."""
```

### create

```python
@classmethod
def create(cls, config: Dict[Text, Any], model_storage: ModelStorage,
           resource: Resource,
           execution_context: ExecutionContext) -> KeywordIntentClassifier:
    """Creates a new untrained component (see parent class for full docstring)."""
```

### train

```python
def train(self, training_data: TrainingData) -> Resource:
    """Trains the intent classifier on a data set."""
```

### process

```python
def process(self, messages: List[Message]) -> List[Message]:
    """Sets the message intent and adds it to the output if it exists."""
```

### persist

```python
def persist(self) -> None:
    """Persist this model into the passed directory."""
```

### load

```python
@classmethod
def load(cls, config: Dict[Text, Any], model_storage: ModelStorage,
         resource: Resource, execution_context: ExecutionContext,
         **kwargs: Any) -> KeywordIntentClassifier:
    """Loads trained component (see parent class for full docstring)."""
```
