Skip to content

Commit bb97ec3

Browse files
committed
rename to ovos-adapt to avoid conflicts with original namespace
1 parent 87b20f6 commit bb97ec3

27 files changed

+63
-100
lines changed

.github/workflows/push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
elif [[ $VERSION == *"-"* ]]; then
8383
echo "Pre-release suffix detected. Not pushing to mycroft-core."
8484
else
85-
sed -E "s/adapt-parser==[0-9]+\.[0-9]+\.[0-9]+/adapt-parser==$VERSION/" requirements/requirements.txt > tmp-requirements.txt
85+
sed -E "s/ovos-adapt-parser==[0-9]+\.[0-9]+\.[0-9]+/ovos-adapt-parser==$VERSION/" requirements/requirements.txt > tmp-requirements.txt
8686
mv tmp-requirements.txt requirements/requirements.txt
8787
echo "ADAPT_VERSION=$VERSION" >> $GITHUB_ENV
8888
fi
@@ -92,9 +92,9 @@ jobs:
9292
uses: peter-evans/create-pull-request@v3
9393
with:
9494
token: ${{ secrets.BOT_TOKEN }}
95-
push-to-fork: mycroft-adapt-bot/mycroft-core
95+
push-to-fork: mycroft-ovos_adapt-bot/mycroft-core
9696
commit-message: Update Adapt to v${{ env.ADAPT_VERSION }}
97-
branch: feature/update-adapt
97+
branch: feature/update-ovos_adapt
9898
delete-branch: true
9999
title: Update Adapt to v${{ env.ADAPT_VERSION }}
100-
body: Automated update from mycroftai/adapt.
100+
body: Automated update from mycroftai/ovos_adapt.

README.md

Lines changed: 7 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
1-
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE.md) [![CLA](https://img.shields.io/badge/CLA%3F-Required-blue.svg)](https://mycroft.ai/cla) [![Team](https://img.shields.io/badge/Team-Mycroft_Core-violetblue.svg)](https://github.com/MycroftAI/contributors/blob/master/team/Mycroft%20Core.md) ![Status](https://img.shields.io/badge/-Production_ready-green.svg)
2-
3-
[![Build Status](https://travis-ci.org/MycroftAI/adapt.svg?branch=master)](https://travis-ci.org/MycroftAI/adapt) [![Coverage Status](https://coveralls.io/repos/github/MycroftAI/adapt/badge.svg?branch=dev)](https://coveralls.io/github/MycroftAI/adapt?branch=master)
4-
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
5-
[![Join chat](https://img.shields.io/badge/Mattermost-join_chat-brightgreen.svg)](https://chat.mycroft.ai)
1+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE.md)
62

73
Adapt Intent Parser
84
==================
95
The Adapt Intent Parser is a flexible and extensible intent definition and determination framework. It is intended to parse natural language text into a structured intent that can then be invoked programatically.
106

11-
[![Introducing the Adapt Intent Parser](https://mycroft.ai/wp-content/uploads/2019/05/Adapt-video-still.png)](https://www.youtube.com/watch?v=zR9xvPtM6Ro)
12-
13-
Getting Started
14-
===============
15-
To take a dependency on Adapt, it's recommended to use virtualenv and pip to install source from github.
16-
17-
```bash
18-
$ virtualenv myvirtualenv
19-
$ . myvirtualenv/bin/activate
20-
$ pip install -e git+https://github.com/mycroftai/adapt#egg=adapt-parser
21-
```
7+
This repository contains a OVOS pipeline plugin and bundles a fork of the original [adapt-parser](https://github.com/MycroftAI/adapt) from the defunct MycroftAI
228

239
Examples
2410
========
@@ -87,26 +73,6 @@ def register_pandora_vocab(emitter):
8773
register_vocab('Pandora Station', match)
8874
```
8975

90-
Development
91-
===========
92-
93-
Glad you'd like to help!
94-
95-
To install test and development requirements run
96-
97-
```
98-
pip install -r test-requirements.txt
99-
```
100-
101-
This will install the test-requirements as well as the runtime requirements for adapt.
102-
103-
To test any changes before submitting them run
104-
105-
```
106-
./run_tests.sh
107-
```
108-
109-
This will run the same checks as the Github actions and verify that your code should pass with flying colours.
11076

11177
Reporting Issues
11278
================
@@ -115,15 +81,13 @@ please include a serialized copy of the intent determination engine using the de
11581
utilities.
11682

11783
```python
118-
from adapt.engine import IntentDeterminationEngine
84+
from ovos_adapt.engine import IntentDeterminationEngine
85+
11986
engine = IntentDeterminationEngine()
12087
# Load engine with vocabulary and parsers
12188

122-
import adapt.tools.debug as atd
123-
atd.dump(engine, 'debug.adapt')
124-
```
89+
import ovos_adapt.tools.debug as atd
12590

126-
Learn More
127-
========
91+
atd.dump(engine, 'debug.ovos_adapt')
92+
```
12893

129-
Further documentation can be found at https://mycroft-ai.gitbook.io/docs/mycroft-technologies/adapt

examples/multi_domain_intent_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import json
1111
import sys
12-
from adapt.intent import IntentBuilder
13-
from adapt.engine import DomainIntentDeterminationEngine
12+
from ovos_adapt.intent import IntentBuilder
13+
from ovos_adapt.engine import DomainIntentDeterminationEngine
1414

1515

1616
engine = DomainIntentDeterminationEngine()

examples/multi_intent_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
import json
1212
import sys
13-
from adapt.intent import IntentBuilder
14-
from adapt.engine import IntentDeterminationEngine
13+
from ovos_adapt.intent import IntentBuilder
14+
from ovos_adapt.engine import IntentDeterminationEngine
1515

1616
engine = IntentDeterminationEngine()
1717

examples/regex_intent_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import json
1111
import sys
12-
from adapt.intent import IntentBuilder
13-
from adapt.engine import IntentDeterminationEngine
12+
from ovos_adapt.intent import IntentBuilder
13+
from ovos_adapt.engine import IntentDeterminationEngine
1414

1515
engine = IntentDeterminationEngine()
1616

examples/single_intent_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"""
88
import json
99
import sys
10-
from adapt.intent import IntentBuilder
11-
from adapt.engine import IntentDeterminationEngine
10+
from ovos_adapt.intent import IntentBuilder
11+
from ovos_adapt.engine import IntentDeterminationEngine
1212

1313
engine = IntentDeterminationEngine()
1414

File renamed without changes.
File renamed without changes.

adapt/engine.py renamed to ovos_adapt/engine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
import re
1717
import heapq
18-
from adapt.entity_tagger import EntityTagger
19-
from adapt.parser import Parser
20-
from adapt.tools.text.tokenizer import EnglishTokenizer
21-
from adapt.tools.text.trie import Trie
18+
from ovos_adapt.entity_tagger import EntityTagger
19+
from ovos_adapt.parser import Parser
20+
from ovos_adapt.tools.text.tokenizer import EnglishTokenizer
21+
from ovos_adapt.tools.text.trie import Trie
2222

2323
__author__ = 'seanfitz'
2424

adapt/entity_tagger.py renamed to ovos_adapt/entity_tagger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
#
1515

16-
from adapt.tools.text.trie import Trie
16+
from ovos_adapt.tools.text.trie import Trie
1717
from six.moves import xrange
1818

1919
__author__ = 'seanfitz'
@@ -32,7 +32,7 @@ def __init__(self, trie, tokenizer, regex_entities=[], max_tokens=20):
3232

3333
def _iterate_subsequences(self, tokens):
3434
"""
35-
Using regex invokes this function, which significantly impacts performance of adapt. it is an N! operation.
35+
Using regex invokes this function, which significantly impacts performance of ovos_adapt. it is an N! operation.
3636
3737
Args:
3838
tokens(list): list of tokens for Yield results.

0 commit comments

Comments
 (0)