def weight_terms_inner(doc_features, weights):
    """

    Args:
        doc_features (dict): features with assigned tags
        weights (dict): tag to weight mappings

    Returns:
        weighted_terms (dict): features with assigned weights

    Examples
        >>> from dsconcept.model import weight_terms_inner
        >>> features = {'ship': 'NOUN', 'sky': 'NOUN', 'way': 'NOUN', 'brick': 'NOUN', 'the ship': 'NOUN_CHUNK'}
        >>> weights = {'NOUN': 1, 'NOUN_CHUNK': 3}
        >>> weighted_terms = weight_terms_inner(features, weights)
        >>> weighted_terms
        {'ship': 1, 'sky': 1, 'way': 1, 'brick': 1, 'the ship': 3}
    """
    weighted_terms = {}
    for pos0, weight in weights.items():
        updated_dict = {w: weight for w, pos in doc_features.items() if pos == pos0}
        weighted_terms.update(updated_dict)

    return weighted_terms