Skip to content

Commit 6c4629f

Browse files
authored
fix: Merge pull request #373 from UniversalDataTool/word-split-regex-impl
add wordSplitRegex support in NLP interfaces
2 parents 882d4bf + cc4150b commit 6c4629f

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"react": "^16.8.6",
7676
"react-dom": "^16.8.6",
7777
"react-markdown": "^4.1.0",
78-
"react-nlp-annotate": "^1.0.0",
78+
"react-nlp-annotate": "^1.0.1",
7979
"rimraf": "^3.0.2",
8080
"spelling": "^2.0.1"
8181
},

src/components/TextEntityRecognition/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const TextEntityRecognition = ({
2727
key={sampleIndex}
2828
titleContent={<Box paddingLeft={4}>Sample {sampleIndex}</Box>}
2929
type="label-sequence"
30+
separatorRegex={iface?.wordSplitRegex}
3031
document={sample?.document}
3132
labels={iface?.labels}
3233
initialSequence={initialSequence}

src/components/TextEntityRelations/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const TextEntityRelations = ({
3131
key={sampleIndex}
3232
titleContent={<Box paddingLeft={4}>Sample {sampleIndex}</Box>}
3333
type="label-relationships"
34+
separatorRegex={iface?.wordSplitRegex}
3435
document={sample?.document}
3536
entityLabels={iface?.entityLabels}
3637
relationshipLabels={iface?.relationLabels}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16932,10 +16932,10 @@ react-native-get-random-values@^1.4.0:
1693216932
dependencies:
1693316933
fast-base64-decode "^1.0.0"
1693416934

16935-
react-nlp-annotate@^1.0.0:
16936-
version "1.0.0"
16937-
resolved "https://registry.yarnpkg.com/react-nlp-annotate/-/react-nlp-annotate-1.0.0.tgz#bda66cf967dd78b79b0ec60afbfd920d6c40cdab"
16938-
integrity sha512-D01lbuaABLMegccLz9VFjhc8bKviESwAKm3hD3y89pmmLresrInOpAGfk5dS+8dAJAmDEZDYhP6xiFMKN3C1xw==
16935+
react-nlp-annotate@^1.0.1:
16936+
version "1.0.1"
16937+
resolved "https://registry.yarnpkg.com/react-nlp-annotate/-/react-nlp-annotate-1.0.1.tgz#38612b1805b1927ae3d230d2bddc2f5621801d1e"
16938+
integrity sha512-NRJoVoWMWVO+bmpSMgOdL82peJPzCSXeTKXDtl/i5E7qRcGt1A9pp25lquMYqUtr4klmuiS5QoN7AN4F78/SKw==
1693916939
dependencies:
1694016940
"@material-ui/lab" "^4.0.0-alpha.56"
1694116941
chroma-js "^2.0.3"

0 commit comments

Comments
 (0)