Skip to content

Commit

Permalink
fix: Merge pull request UniversalDataTool#373 from UniversalDataTool/…
Browse files Browse the repository at this point in the history
…word-split-regex-impl

add wordSplitRegex support in NLP interfaces
  • Loading branch information
seveibar authored Nov 12, 2020
2 parents 882d4bf + cc4150b commit 6c4629f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-markdown": "^4.1.0",
"react-nlp-annotate": "^1.0.0",
"react-nlp-annotate": "^1.0.1",
"rimraf": "^3.0.2",
"spelling": "^2.0.1"
},
Expand Down
1 change: 1 addition & 0 deletions src/components/TextEntityRecognition/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const TextEntityRecognition = ({
key={sampleIndex}
titleContent={<Box paddingLeft={4}>Sample {sampleIndex}</Box>}
type="label-sequence"
separatorRegex={iface?.wordSplitRegex}
document={sample?.document}
labels={iface?.labels}
initialSequence={initialSequence}
Expand Down
1 change: 1 addition & 0 deletions src/components/TextEntityRelations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const TextEntityRelations = ({
key={sampleIndex}
titleContent={<Box paddingLeft={4}>Sample {sampleIndex}</Box>}
type="label-relationships"
separatorRegex={iface?.wordSplitRegex}
document={sample?.document}
entityLabels={iface?.entityLabels}
relationshipLabels={iface?.relationLabels}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16932,10 +16932,10 @@ react-native-get-random-values@^1.4.0:
dependencies:
fast-base64-decode "^1.0.0"

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

0 comments on commit 6c4629f

Please sign in to comment.